diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-12-10 15:20:48 -0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-01-09 17:02:21 -0800 |
commit | 88a70a69c088933011615fe26242e0335b012284 (patch) | |
tree | 3d76e6b02943b7271aa18a77156427ffca2036c1 /fs/f2fs/segment.c | |
parent | cd52b6368f1301b55d0e484105c876930e443d83 (diff) | |
download | linux-88a70a69c088933011615fe26242e0335b012284.tar.bz2 |
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>
Diffstat (limited to 'fs/f2fs/segment.c')
-rw-r--r-- | fs/f2fs/segment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 42607a679923..11e4b5c14616 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -290,7 +290,7 @@ void f2fs_balance_fs_bg(struct f2fs_sb_info *sbi) /* check the # of cached NAT entries and prefree segments */ if (try_to_free_nats(sbi, NAT_ENTRY_PER_BLOCK) || excess_prefree_segs(sbi) || - available_free_memory(sbi, INO_ENTRIES)) + !available_free_memory(sbi, INO_ENTRIES)) f2fs_sync_fs(sbi->sb, true); } |