summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2017-02-28 06:28:53 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2017-02-28 18:57:13 +0100
commit900f736251c81886f3064c9d489c85eddee921b7 (patch)
tree2349e14d649acffbf8e6c106a85a8f8d212d67a3 /fs/f2fs/node.c
parentf2fs: avoid to issue redundant discard commands (diff)
downloadlinux-900f736251c81886f3064c9d489c85eddee921b7.tar.xz
linux-900f736251c81886f3064c9d489c85eddee921b7.zip
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 b3aead4c5a0f..94967171dee8 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -2513,7 +2513,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);