From: Aneesh Kumar K.V Date: Mon, 28 Feb 2011 11:33:59 +0000 (+0530) Subject: fs/9p: Mark file system with MS_SYNCHRONOUS only if it is not cached mode X-Git-Tag: upstream/snapshot3+hdmi~11236^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db5841d4a505d1ecb087dc37462926a80511ae8b;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 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 4f14be5..76f867c 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, sb->s_op = &v9fs_super_ops; sb->s_bdi = &v9ses->bdi; - sb->s_flags = flags | MS_ACTIVE | MS_SYNCHRONOUS | MS_DIRSYNC | - MS_NOATIME; + sb->s_flags = flags | MS_ACTIVE | MS_DIRSYNC | MS_NOATIME; + if (!v9ses->cache) + sb->s_flags |= MS_SYNCHRONOUS; #ifdef CONFIG_9P_FS_POSIX_ACL if ((v9ses->flags & V9FS_ACL_MASK) == V9FS_POSIX_ACL)