mkfs.f2fs: introduce mkfs parameters in f2fs_configuration
authorSheng Yong <shengyong1@huawei.com>
Fri, 23 Feb 2018 03:17:56 +0000 (11:17 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 7 May 2018 21:49:38 +0000 (14:49 -0700)
commit5e91b3640cf170f127a3501374f4ca27bc1a014e
tree46e44c26b120de4720a9be7eb14b494b079c1944
parentbe4f9a661e67ab545c1aad10f6414f2d77bc2025
mkfs.f2fs: introduce mkfs parameters in f2fs_configuration

Introduce new parameters in f2fs_configuration for mkfs:
  * next_free_nid: save the next free nid
  * quota_inum: save how many blocks are used for quota inodes
  * quota_dnum: save how many blocks are used for quota data

Use these parameters to avoid duplicated count of these values. And
discard obsolete dnodes after all inodes are created.

Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
include/f2fs_fs.h
mkfs/f2fs_format.c