From 526e13b72301feb248ab757b3fbc38790e23403e Mon Sep 17 00:00:00 2001 From: "Aneesh Kumar K.V" Date: Mon, 28 Feb 2011 17:04:03 +0530 Subject: [PATCH] --- yaml --- r: 235035 b: refs/heads/master c: 6b365604ca8c1b67f0d5a816cf5acf2dc3edc229 h: refs/heads/master i: 235033: 8e332667908f27d1375c241f2b5f5769dbe8e6f4 235031: d95834f86d85ba32803274bf92cd8737eb18275a v: v3 --- [refs] | 2 +- trunk/fs/9p/vfs_super.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 09e7ab471ef0..407f80cf6f73 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6b39f6d22fbf67cf795c105b4d67c64e9c352ca4 +refs/heads/master: 6b365604ca8c1b67f0d5a816cf5acf2dc3edc229 diff --git a/trunk/fs/9p/vfs_super.c b/trunk/fs/9p/vfs_super.c index 6c812d1c58f1..f84d625b8790 100644 --- a/trunk/fs/9p/vfs_super.c +++ b/trunk/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)