f2fs: large volume support
authorChangman Lee <cm224.lee@samsung.com>
Mon, 12 May 2014 03:27:43 +0000 (12:27 +0900)
committerIan Chang <ianc@nvidia.com>
Wed, 27 Jan 2016 10:04:02 +0000 (18:04 +0800)
commit85b2847121a22d66cc7265dc7b0db5fcab3a7179
tree12f40b2f0f23acab145b0ee6718964e42b93f0e7
parent958d014c7cd5176728a44cd86f26fed926e123b4
f2fs: large volume support

f2fs's cp has one page which consists of struct f2fs_checkpoint and
version bitmap of sit and nat. To support lots of segments, we need more
blocks for sit bitmap. So let's arrange sit bitmap as following:
+-----------------+------------+
| f2fs_checkpoint | sit bitmap |
| + nat bitmap    |            |
+-----------------+------------+
0                 4k        N blocks

Signed-off-by: Changman Lee <cm224.lee@samsung.com>
[Jaegeuk Kim: simple code change for readability]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/f2fs.h
include/linux/f2fs_fs.h