summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/segment.h
diff options
context:
space:
mode:
authorYangtao Li <frank.li@vivo.com>2023-02-13 22:18:24 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2023-02-14 10:07:45 -0800
commitf2e357893cb7d15994e4ec10838ebb4dccf7eb6e (patch)
tree49afd058cd83a4b624d9db8449c2ba2637f13ec4 /fs/f2fs/segment.h
parent273a51e5521213a13e5852e762cc9c03c66b9baa (diff)
downloadlinux-stable-f2e357893cb7d15994e4ec10838ebb4dccf7eb6e.tar.gz
linux-stable-f2e357893cb7d15994e4ec10838ebb4dccf7eb6e.tar.bz2
linux-stable-f2e357893cb7d15994e4ec10838ebb4dccf7eb6e.zip
f2fs: export ipu policy in debugfs
Export ipu_policy as a string in debugfs for better readability and it can help us better understand some strategies of the file system. 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/segment.h')
-rw-r--r--fs/f2fs/segment.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h
index 8ee5e5db9287..92c8be00d396 100644
--- a/fs/f2fs/segment.h
+++ b/fs/f2fs/segment.h
@@ -672,6 +672,7 @@ static inline int utilization(struct f2fs_sb_info *sbi)
#define F2FS_IPU_DISABLE 0
+/* Modification on enum should be synchronized with ipu_mode_names array */
enum {
F2FS_IPU_FORCE,
F2FS_IPU_SSR,