Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -419,7 +419,7 @@ void f2fs_balance_fs_bg(struct f2fs_sb_info *sbi)
	else
		build_free_nids(sbi, false, false);

	if (!is_idle(sbi))
	if (!is_idle(sbi) && !excess_dirty_nats(sbi))
		return;

	/* checkpoint is the only way to shrink partial cached entries */