summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2022-01-27 13:31:43 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2022-02-12 05:58:18 -0800
commit47c8ebcce85ed7113e9e3e3f1d8c6374fa87848e (patch)
treeb9cd52b0f68aab84c283c1fd9b97da308361c381 /fs/f2fs/node.h
parent1018a5463a063715365784704c4e8cdf2eec4b04 (diff)
downloadlinux-stable-47c8ebcce85ed7113e9e3e3f1d8c6374fa87848e.tar.gz
linux-stable-47c8ebcce85ed7113e9e3e3f1d8c6374fa87848e.tar.bz2
linux-stable-47c8ebcce85ed7113e9e3e3f1d8c6374fa87848e.zip
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>
Diffstat (limited to 'fs/f2fs/node.h')
-rw-r--r--fs/f2fs/node.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h
index 18b98cf0465b..4c1d34bfea78 100644
--- a/fs/f2fs/node.h
+++ b/fs/f2fs/node.h
@@ -31,6 +31,9 @@
/* control total # of nats */
#define DEF_NAT_CACHE_THRESHOLD 100000
+/* control total # of node writes used for roll-fowrad recovery */
+#define DEF_RF_NODE_BLOCKS 0
+
/* vector size for gang look-up from nat cache that consists of radix tree */
#define NATVEC_SIZE 64
#define SETVEC_SIZE 32