]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: simplify the way of calulating next nat address
authorFan Li <fanofcode.li@samsung.com>
Fri, 2 Jun 2017 07:45:42 +0000 (15:45 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 4 Jul 2017 09:11:34 +0000 (02:11 -0700)
commit155303ab7e9c21414a10a6f20b98e2789f22a099
tree4d2abe0f9dedc0a2107152c812653838f77a5e0d
parent2dd874031775dfb3f5d19c1594e8e886d3aedd9f
f2fs: simplify the way of calulating next nat address

The index of segment which the next nat block is in has only one different
bit than the current one, so to get the next nat address, we can simply
alter that one bit.

Signed-off-by: Fan Li <fanofcode.li@samsung.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/node.h