]> www.infradead.org Git - users/jedix/linux-maple.git/commit
f2fs: add valid block ratio not to do excessive GC for one time GC
authorDaeho Jeong <daehojeong@google.com>
Mon, 9 Sep 2024 22:19:46 +0000 (15:19 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 11 Sep 2024 03:33:08 +0000 (03:33 +0000)
commite791d00bd06cb2d3a10afa43e57f6364931d0ada
tree17f067d759cf9078c04a0677a30ffbd4c7e68c5a
parent9a481a1c16f4653c3414d996c3603eb42926e28b
f2fs: add valid block ratio not to do excessive GC for one time GC

We need to introduce a valid block ratio threshold not to trigger
excessive GC for zoned deivces. The initial value of it is 95%. So, F2FS
will stop the thread from intiating GC for sections having valid blocks
exceeding the ratio.

Signed-off-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Documentation/ABI/testing/sysfs-fs-f2fs
fs/f2fs/f2fs.h
fs/f2fs/gc.c
fs/f2fs/gc.h
fs/f2fs/segment.c
fs/f2fs/segment.h
fs/f2fs/sysfs.c