mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
f2fs: fix wrong condition check to trigger f2fs_sync_fs
If there is not enough available memory, we need to trigger f2fs_sync_fs. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
cd52b6368f
commit
88a70a69c0
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@ void f2fs_balance_fs_bg(struct f2fs_sb_info *sbi)
|
||||||
/* check the # of cached NAT entries and prefree segments */
|
/* check the # of cached NAT entries and prefree segments */
|
||||||
if (try_to_free_nats(sbi, NAT_ENTRY_PER_BLOCK) ||
|
if (try_to_free_nats(sbi, NAT_ENTRY_PER_BLOCK) ||
|
||||||
excess_prefree_segs(sbi) ||
|
excess_prefree_segs(sbi) ||
|
||||||
available_free_memory(sbi, INO_ENTRIES))
|
!available_free_memory(sbi, INO_ENTRIES))
|
||||||
f2fs_sync_fs(sbi->sb, true);
|
f2fs_sync_fs(sbi->sb, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue