OSDN Git Service

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>
Thu, 13 Jul 2017 23:56:32 +0000 (16:56 -0700)
commit9ddde7dfd1c9446a26224353393d145c60426093
tree2a25b7c89f765bae63d8259c02891c9d7c80f163
parent1479b6ffeb2eba6575600fb941f73f47d74a91a0
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