Skip to content

Commit 740b8bf

Browse files
committed
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>
1 parent d9bc0d1 commit 740b8bf

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

fs/9p/vfs_super.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ v9fs_fill_super(struct super_block *sb, struct v9fs_session_info *v9ses,
8484
sb->s_bdi->io_pages = v9ses->maxdata >> PAGE_SHIFT;
8585
}
8686

87-
sb->s_flags |= SB_ACTIVE | SB_DIRSYNC;
88-
if (!v9ses->cache)
89-
sb->s_flags |= SB_SYNCHRONOUS;
87+
sb->s_flags |= SB_ACTIVE;
9088

9189
#ifdef CONFIG_9P_FS_POSIX_ACL
9290
if ((v9ses->flags & V9FS_ACL_MASK) == V9FS_POSIX_ACL)

0 commit comments

Comments
 (0)