Commit 1c0f4bf5 authored by Jaegeuk Kim's avatar Jaegeuk Kim

f2fs: flush dirty nats periodically

This patch flushes dirty nats in order to acquire available nids by writing
checkpoint. Otherwise, we can have no chance to get freed nids.
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 1f43e2ad
...@@ -419,7 +419,7 @@ void f2fs_balance_fs_bg(struct f2fs_sb_info *sbi) ...@@ -419,7 +419,7 @@ void f2fs_balance_fs_bg(struct f2fs_sb_info *sbi)
else else
build_free_nids(sbi, false, false); build_free_nids(sbi, false, false);
if (!is_idle(sbi)) if (!is_idle(sbi) && !excess_dirty_nats(sbi))
return; return;
/* checkpoint is the only way to shrink partial cached entries */ /* checkpoint is the only way to shrink partial cached entries */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment