f2fs: add a way to limit roll forward recovery time
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 27 Jan 2022 21:31:43 +0000 (13:31 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 12 Feb 2022 13:58:18 +0000 (05:58 -0800)
commit47c8ebcce85ed7113e9e3e3f1d8c6374fa87848e
treeb9cd52b0f68aab84c283c1fd9b97da308361c381
parent1018a5463a063715365784704c4e8cdf2eec4b04
f2fs: add a way to limit roll forward recovery time

This adds a sysfs entry to call checkpoint during fsync() in order to avoid
long elapsed time to run roll-forward recovery when booting the device.
Default value doesn't enforce the limitation which is same as before.

Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Documentation/ABI/testing/sysfs-fs-f2fs
fs/f2fs/checkpoint.c
fs/f2fs/debug.c
fs/f2fs/f2fs.h
fs/f2fs/node.c
fs/f2fs/node.h
fs/f2fs/recovery.c
fs/f2fs/super.c
fs/f2fs/sysfs.c