aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/node.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2017-02-27 21:28:53 -0800
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:35:08 +0200
commita04a2b3d02c1328694b0fe81977d1c46d2452db4 (patch)
tree25ce95bd6f148229c61c657f2b06ac90bbd33771 /fs/f2fs/node.c
parenta83c1478bde55d7b24ecee84f99e702ef30add94 (diff)
f2fs: avoid to flush nat journal entries
This patch adds a missing condition which flushes nat journal entries unnecessarily introduced by: f2fs: add bitmaps for empty or full NAT blocks Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/node.c')
-rw-r--r--fs/f2fs/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index e4e5f0d18..e89b91b72 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -2533,7 +2533,7 @@ void flush_nat_entries(struct f2fs_sb_info *sbi, struct cp_control *cpc)
* entries, remove all entries from journal and merge them
* into nat entry set.
*/
- if (cpc->reason == CP_UMOUNT ||
+ if (enabled_nat_bits(sbi, cpc) ||
!__has_cursum_space(journal, nm_i->dirty_nat_cnt, NAT_JOURNAL))
remove_nats_in_journal(sbi);