aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2011-02-28 06:33:59 -0500
committerEric Van Hensbergen <ericvh@gmail.com>2011-03-15 10:57:38 -0400
commitdb5841d4a505d1ecb087dc37462926a80511ae8b (patch)
treeeb240e9587f2778fb1ff83bed0eb51682370340d /fs
parenta950a65264ab9e9b96e7093e3358ffa84799f99c (diff)
fs/9p: Mark file system with MS_SYNCHRONOUS only if it is not cached mode
We should not mark file system synchronous if mounted cache=* option 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')
-rw-r--r--fs/9p/vfs_super.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c
index 4f14be585d6c..76f867cf23f8 100644
--- a/fs/9p/vfs_super.c
+++ b/fs/9p/vfs_super.c
@@ -87,8 +87,9 @@ v9fs_fill_super(struct super_block *sb, struct v9fs_session_info *v9ses,
87 sb->s_op = &v9fs_super_ops; 87 sb->s_op = &v9fs_super_ops;
88 sb->s_bdi = &v9ses->bdi; 88 sb->s_bdi = &v9ses->bdi;
89 89
90 sb->s_flags = flags | MS_ACTIVE | MS_SYNCHRONOUS | MS_DIRSYNC | 90 sb->s_flags = flags | MS_ACTIVE | MS_DIRSYNC | MS_NOATIME;
91 MS_NOATIME; 91 if (!v9ses->cache)
92 sb->s_flags |= MS_SYNCHRONOUS;
92 93
93#ifdef CONFIG_9P_FS_POSIX_ACL 94#ifdef CONFIG_9P_FS_POSIX_ACL
94 if ((v9ses->flags & V9FS_ACL_MASK) == V9FS_POSIX_ACL) 95 if ((v9ses->flags & V9FS_ACL_MASK) == V9FS_POSIX_ACL)