Skip to content

Commit 900f736

Browse files
author
Jaegeuk Kim
committed
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>
1 parent 8b107f5 commit 900f736

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/f2fs/node.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2513,7 +2513,7 @@ void flush_nat_entries(struct f2fs_sb_info *sbi, struct cp_control *cpc)
25132513
* entries, remove all entries from journal and merge them
25142514
* into nat entry set.
25152515
*/
2516-
if (cpc->reason == CP_UMOUNT ||
2516+
if (enabled_nat_bits(sbi, cpc) ||
25172517
!__has_cursum_space(journal, nm_i->dirty_nat_cnt, NAT_JOURNAL))
25182518
remove_nats_in_journal(sbi);
25192519

0 commit comments

Comments
 (0)