summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorEric Van Hensbergen <ericvh@kernel.org>2022-12-17 17:05:47 +0000
committerEric Van Hensbergen <ericvh@kernel.org>2023-03-27 02:33:47 +0000
commit740b8bf87322701b4607b77346477cbc764f5c56 (patch)
tree27b442495d32cf64f09234cf433ee55d0ac04838 /fs
parentd9bc0d11e33bd7b6bfeedc570cd5738e5b4c7ca8 (diff)
downloadlinux-stable-740b8bf87322701b4607b77346477cbc764f5c56.tar.gz
linux-stable-740b8bf87322701b4607b77346477cbc764f5c56.tar.bz2
linux-stable-740b8bf87322701b4607b77346477cbc764f5c56.zip
fs/9p: Remove unnecessary superblock flags
These flags just add unnecessary extra operations. When 9p is run without cache, it inherently implements these options so we don't need them in the superblock (which ends up sending extraneous fsyncs, etc.). User can still request these options on mount, but we don't need to set them as default. Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/9p/vfs_super.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c
index 266c4693e20c..65d96fa94ba2 100644
--- a/fs/9p/vfs_super.c
+++ b/fs/9p/vfs_super.c
@@ -84,9 +84,7 @@ v9fs_fill_super(struct super_block *sb, struct v9fs_session_info *v9ses,
sb->s_bdi->io_pages = v9ses->maxdata >> PAGE_SHIFT;
}
- sb->s_flags |= SB_ACTIVE | SB_DIRSYNC;
- if (!v9ses->cache)
- sb->s_flags |= SB_SYNCHRONOUS;
+ sb->s_flags |= SB_ACTIVE;
#ifdef CONFIG_9P_FS_POSIX_ACL
if ((v9ses->flags & V9FS_ACL_MASK) == V9FS_POSIX_ACL)