aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/f2fs/sysfs.c
diff options
context:
space:
mode:
authorDaeho Jeong <daehojeong@google.com>2024-09-09 15:19:42 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2024-09-11 03:32:57 +0000
commit4cdca5a904b1c72a0ba6ac51a121351128c02fd8 (patch)
tree77245d0389a991ad04b8dd576d184bcd0d1e0634 /fs/f2fs/sysfs.c
parentf2fs: introduce migration_window_granularity (diff)
downloadwireguard-linux-4cdca5a904b1c72a0ba6ac51a121351128c02fd8.tar.xz
wireguard-linux-4cdca5a904b1c72a0ba6ac51a121351128c02fd8.zip
f2fs: add reserved_segments sysfs node
For the fine tuning of GC behavior, add reserved_segments sysfs node. Signed-off-by: Daeho Jeong <daehojeong@google.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/sysfs.c')
-rw-r--r--fs/f2fs/sysfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c
index 02b35edc9e1d..8eedba8ae710 100644
--- a/fs/f2fs/sysfs.c
+++ b/fs/f2fs/sysfs.c
@@ -986,6 +986,7 @@ SM_INFO_GENERAL_RW_ATTR(min_fsync_blocks);
SM_INFO_GENERAL_RW_ATTR(min_seq_blocks);
SM_INFO_GENERAL_RW_ATTR(min_hot_blocks);
SM_INFO_GENERAL_RW_ATTR(min_ssr_sections);
+SM_INFO_GENERAL_RW_ATTR(reserved_segments);
/* DCC_INFO ATTR */
DCC_INFO_RW_ATTR(max_small_discards, max_discards);
@@ -1158,6 +1159,7 @@ static struct attribute *f2fs_attrs[] = {
ATTR_LIST(min_seq_blocks),
ATTR_LIST(min_hot_blocks),
ATTR_LIST(min_ssr_sections),
+ ATTR_LIST(reserved_segments),
ATTR_LIST(max_victim_search),
ATTR_LIST(migration_granularity),
ATTR_LIST(migration_window_granularity),