f2fs: support large nat bitmap
authorChao Yu <yuchao0@huawei.com>
Thu, 25 Jan 2018 11:40:08 +0000 (19:40 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 8 Apr 2018 11:07:47 +0000 (04:07 -0700)
commitf50100868cb8f823dad59322a08f6f25956569e9
tree89ab76866db3e5cf2308011dc8c2a62377f89311
parente9437125502c31e3e52863713bfd27617f9a7424
f2fs: support large nat bitmap

Previously, we will store all nat version bitmap in checkpoint pack block,
so our total node entry number has a limitation which caused total node
number can not exceed (3900 * 8) block * 455 node/block = 14196000. So
that once user wants to create more nodes in large size image, it becomes
a bottleneck, that's unreasonable.

This patch detects the new layout of nat/sit version bitmap in image in
order to enable supporting large nat bitmap.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
include/linux/f2fs_fs.h