diff options
author | Fan Li <fanofcode.li@samsung.com> | 2017-11-02 11:02:52 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-11-05 16:42:09 -0800 |
commit | f6986ede80c9a03babb1cff870964f4de1e763e8 (patch) | |
tree | ae4375d290e3b1004b4ad017a60511737122f273 /fs/f2fs/node.c | |
parent | 2b60311dd1ae80d061b17a38e0a4d7f4eb558a17 (diff) | |
download | linux-f6986ede80c9a03babb1cff870964f4de1e763e8.tar.gz linux-f6986ede80c9a03babb1cff870964f4de1e763e8.tar.bz2 linux-f6986ede80c9a03babb1cff870964f4de1e763e8.zip |
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>
Diffstat (limited to 'fs/f2fs/node.c')
-rw-r--r-- | fs/f2fs/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index a7f6603bfbea..fef5c68886b1 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -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++) |