[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250530084648.2434569-1-frank.li@vivo.com>
Date: Fri, 30 May 2025 02:46:48 -0600
From: Yangtao Li <frank.li@...o.com>
To: hirofumi@...l.parknet.co.jp
Cc: linux-kernel@...r.kernel.org,
Yangtao Li <frank.li@...o.com>
Subject: [PATCH] fat: correct superblock flags
SB_NOATIME includes SB_NODIRATIME as a subset. Therefore,
setting SB_NOATIME is sufficient to disable atime updates
for all files and directories.
Signed-off-by: Yangtao Li <frank.li@...o.com>
---
fs/fat/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/fat/inode.c b/fs/fat/inode.c
index 3852bb66358c..5da96c37386d 100644
--- a/fs/fat/inode.c
+++ b/fs/fat/inode.c
@@ -807,7 +807,7 @@ int fat_reconfigure(struct fs_context *fc)
bool new_rdonly;
struct super_block *sb = fc->root->d_sb;
struct msdos_sb_info *sbi = MSDOS_SB(sb);
- fc->sb_flags |= SB_NODIRATIME | (sbi->options.isvfat ? 0 : SB_NOATIME);
+ fc->sb_flags |= sbi->options.isvfat ? SB_NODIRATIME : SB_NOATIME;
sync_filesystem(sb);
--
2.48.1
Powered by blists - more mailing lists