|
@@ -1268,6 +1268,8 @@ static int scan_nat_page(struct f2fs_nm_info *nm_i,
|
|
i = start_nid % NAT_ENTRY_PER_BLOCK;
|
|
i = start_nid % NAT_ENTRY_PER_BLOCK;
|
|
|
|
|
|
for (; i < NAT_ENTRY_PER_BLOCK; i++, start_nid++) {
|
|
for (; i < NAT_ENTRY_PER_BLOCK; i++, start_nid++) {
|
|
|
|
+ if (start_nid >= nm_i->max_nid)
|
|
|
|
+ break;
|
|
blk_addr = le32_to_cpu(nat_blk->entries[i].block_addr);
|
|
blk_addr = le32_to_cpu(nat_blk->entries[i].block_addr);
|
|
BUG_ON(blk_addr == NEW_ADDR);
|
|
BUG_ON(blk_addr == NEW_ADDR);
|
|
if (blk_addr == NULL_ADDR)
|
|
if (blk_addr == NULL_ADDR)
|