]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: introduce excess_dirty_threshold()
authorChao Yu <chao@kernel.org>
Thu, 16 Sep 2021 09:09:03 +0000 (17:09 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 20 Sep 2021 23:12:51 +0000 (16:12 -0700)
commit7664a339be0f1d62f47fb2761384f435584ffdbc
tree03af6116817af3d882f5df61bd3c39c2fd598cd0
parentb55d35c2b46d902e8a09a2ab982fdaee73e66e44
f2fs: introduce excess_dirty_threshold()

This patch enables f2fs_balance_fs_bg() to check all metadatas' dirty
threshold rather than just checking node block's, so that checkpoint()
from background can be triggered more frequently to avoid heaping up
too much dirty metadatas.

Threshold value by default:
race with foreground ops single type global
No 16MB 24MB
Yes 24MB 36MB

In addtion, let f2fs_balance_fs_bg() be aware of roll-forward sapce
as well as fsync().

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/node.h
fs/f2fs/segment.c