]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit72fdbe2efe3e42a54e268d2ee2a8c0828d3996e7
tree4d2abe0f9dedc0a2107152c812653838f77a5e0d
parent21d3f8e1c3b7996ce239ab6fa82e9f7a8c47d84d
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