aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/debug.c
diff options
context:
space:
mode:
authorYangtao Li <frank.li@vivo.com>2021-08-14 18:37:01 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2021-08-17 11:59:05 -0700
commit491f7f71e18411463f348beac1b6d99eb8f2c6c1 (patch)
tree82899d6fdc186140d4450c08acc173523f92f1b7 /fs/f2fs/debug.c
parentf2fs: fix to keep compatibility of fault injection interface (diff)
downloadlinux-dev-491f7f71e18411463f348beac1b6d99eb8f2c6c1.tar.xz
linux-dev-491f7f71e18411463f348beac1b6d99eb8f2c6c1.zip
f2fs: convert S_IRUGO to 0444
To fix: WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. Signed-off-by: Yangtao Li <frank.li@vivo.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/debug.c')
-rw-r--r--fs/f2fs/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c
index d8c09346545d..8c50518475a9 100644
--- a/fs/f2fs/debug.c
+++ b/fs/f2fs/debug.c
@@ -642,7 +642,7 @@ void __init f2fs_create_root_stats(void)
#ifdef CONFIG_DEBUG_FS
f2fs_debugfs_root = debugfs_create_dir("f2fs", NULL);
- debugfs_create_file("status", S_IRUGO, f2fs_debugfs_root, NULL,
+ debugfs_create_file("status", 0444, f2fs_debugfs_root, NULL,
&stat_fops);
#endif
}