]> 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)
commit51d2183a2cf45d136f031003ded474a9b76f09d3
tree4d2abe0f9dedc0a2107152c812653838f77a5e0d
parent938c8085e368a29e5b3ebc83129c1f739f3513fd
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