From: Aneesh Kumar K.V Date: Mon, 28 Feb 2011 11:34:03 +0000 (+0530) Subject: fs/9p: set default readahead pages in cached mode X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6b365604ca8c1b67f0d5a816cf5acf2dc3edc229;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git fs/9p: set default readahead pages in cached mode We want to enable readahead in cached mode Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen --- diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c index 6c812d1c58f..f84d625b879 100644 --- a/fs/9p/vfs_super.c +++ b/fs/9p/vfs_super.c @@ -86,6 +86,8 @@ v9fs_fill_super(struct super_block *sb, struct v9fs_session_info *v9ses, } else sb->s_op = &v9fs_super_ops; sb->s_bdi = &v9ses->bdi; + if (v9ses->cache) + sb->s_bdi->ra_pages = (VM_MAX_READAHEAD * 1024)/PAGE_CACHE_SIZE; sb->s_flags = flags | MS_ACTIVE | MS_DIRSYNC | MS_NOATIME; if (!v9ses->cache)