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>
Mon, 12 Mar 2018 23:05:33 +0000 (08:05 +0900)
commit199bc3fef29cacf672e7e5cd49d296c1fdc1a891
tree0a44af6c0911b048b57908ea1c4b40cf1e2d8fd3
parentbf617f7a92edc6bb2909db2bfa4576f50b280ee5
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