f2fs: introduce reserved_pin_section sysfs entry
authorChao Yu <chao@kernel.org>
Fri, 13 Jun 2025 05:51:09 +0000 (13:51 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 23 Jun 2025 22:13:02 +0000 (22:13 +0000)
commit59c1c89e9ba8cefff05aa982dd9e6719f25e8ec5
tree96fe032cf27a10cf9d1f82fee847db9bd9bdf689
parent90d5c9ba3ed91950f1546bf123a7a57cd958b452
f2fs: introduce reserved_pin_section sysfs entry

This patch introduces /sys/fs/f2fs/<dev>/reserved_pin_section for tuning
@needed parameter of has_not_enough_free_secs(), if we configure it w/
zero, it can avoid f2fs_gc() as much as possible while fallocating on
pinned file.

Signed-off-by: Chao Yu <chao@kernel.org>
Reviewed-by: wangzijie <wangzijie1@honor.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Documentation/ABI/testing/sysfs-fs-f2fs
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/super.c
fs/f2fs/sysfs.c