mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-20 14:16:02 +00:00
f2fs: save a multiplication for last_nid calculation
Use a slightly easier way to calculate last_nid. Signed-off-by: Fan li <fanofcode.li@samsung.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
2b60311dd1
commit
f6986ede80
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
nid = i * NAT_ENTRY_PER_BLOCK;
|
||||
last_nid = (i + 1) * NAT_ENTRY_PER_BLOCK;
|
||||
last_nid = nid + NAT_ENTRY_PER_BLOCK;
|
||||
|
||||
spin_lock(&NM_I(sbi)->nid_list_lock);
|
||||
for (; nid < last_nid; nid++)
|
||||
|
|
Loading…
Reference in a new issue