fs/9p: don't set SB_NOATIME by default
authorYiwen Jiang <[email protected]>
Thu, 5 Apr 2018 23:19:57 +0000 (16:19 -0700)
committerLinus Torvalds <[email protected]>
Fri, 6 Apr 2018 04:36:22 +0000 (21:36 -0700)
commit7ff3c2046803ac99d95de6d63cda46c84f72293b
tree9214e3d0a1d9d39c0d2c0d77eaa3ec46ee682ba3
parenta25c36577ca788f9ea4b229baef1b6d436393a4c
fs/9p: don't set SB_NOATIME by default

When the user uses some syscall, for example mmap(v9fs_file_mmap), it
will not update atime even if user's was set mnt_flags without
MNT_NOATIME, because v9fs defaults to settine SB_NOATIME in
v9fs_set_super.

For supporting access time updating when the user mounts with relatime,
we should not set SB_NOATIME by default.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Yiwen Jiang <[email protected]>
Reviewed-by: Greg Kurz <[email protected]>
Cc: Eric Van Hensbergen <[email protected]>
Cc: Ron Minnich <[email protected]>
Cc: Latchesar Ionkov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/9p/vfs_super.c