Commit f6986ede authored by Fan Li's avatar Fan Li Committed by Jaegeuk Kim

f2fs: save a multiplication for last_nid calculation

Use a slightly easier way to calculate last_nid.
Signed-off-by: default avatarFan li <>
Reviewed-by: default avatarChao Yu <>
Signed-off-by: default avatarJaegeuk Kim <>
parent 2b60311d
......@@ -2626,7 +2626,7 @@ static inline void load_free_nid_bitmap(struct f2fs_sb_info *sbi)
__set_bit_le(i, nm_i->nat_block_bitmap);
last_nid = (i + 1) * NAT_ENTRY_PER_BLOCK;
last_nid = nid + NAT_ENTRY_PER_BLOCK;
for (; nid < last_nid; nid++)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment