diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index e65d73293a3f635e8ca37c33944cd602f88d5829..597a145c08ef5155de88a736cc28503b67ec9b13 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -2781,6 +2781,9 @@ static void remove_nats_in_journal(struct f2fs_sb_info *sbi) struct f2fs_nat_entry raw_ne; nid_t nid = le32_to_cpu(nid_in_journal(journal, i)); + if (f2fs_check_nid_range(sbi, nid)) + continue; + raw_ne = nat_in_journal(journal, i); ne = __lookup_nat_cache(nm_i, nid);