diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2011-02-28 17:04:03 +0530 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2011-03-15 09:57:39 -0500 |
commit | 6b365604ca8c1b67f0d5a816cf5acf2dc3edc229 (patch) | |
tree | b2654a6169e74a85b215ebbfaf35930616175f2a /fs/9p | |
parent | 6b39f6d22fbf67cf795c105b4d67c64e9c352ca4 (diff) | |
download | linux-6b365604ca8c1b67f0d5a816cf5acf2dc3edc229.tar.gz linux-6b365604ca8c1b67f0d5a816cf5acf2dc3edc229.tar.bz2 linux-6b365604ca8c1b67f0d5a816cf5acf2dc3edc229.zip |
fs/9p: set default readahead pages in cached mode
We want to enable readahead in cached mode
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p')
-rw-r--r-- | fs/9p/vfs_super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c index 6c812d1c58f1..f84d625b8790 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) |