]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: introduce reserved_pin_section sysfs entry
authorChao Yu <chao@kernel.org>
Fri, 13 Jun 2025 05:51:09 +0000 (13:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 12:55:16 +0000 (13:55 +0100)
commit4c5181b9e1a994b5df6de0815ef0a1cfb888a31b
treea6158a31441dadab2913a4020cdcbd3ee2466087
parentd4a4abba458496d27fd54196597249c8cddfbb95
f2fs: introduce reserved_pin_section sysfs entry

[ Upstream commit 59c1c89e9ba8cefff05aa982dd9e6719f25e8ec5 ]

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>
Stable-dep-of: e462fc48ceb8 ("f2fs: maintain one time GC mode is enabled during whole zoned GC cycle")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/ABI/testing/sysfs-fs-f2fs
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/super.c
fs/f2fs/sysfs.c