f2fs: make max inline size changeable
authorChao Yu <yuchao0@huawei.com>
Tue, 18 Jul 2017 16:19:05 +0000 (00:19 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 31 Jul 2017 23:48:29 +0000 (16:48 -0700)
commitf247037120ecd3dcbbc196b51ded8b57edf4904f
tree9c255f95da7eadb42d67a0c0e7563e5d8916dbb0
parente65ef20781cbfcbfe2d62ce37e028964bc34b313
f2fs: make max inline size changeable

This patch tries to make below macros calculating max inline size,
inline dentry field size considerring reserving size-changeable
space:
- MAX_INLINE_DATA
- NR_INLINE_DENTRY
- INLINE_DENTRY_BITMAP_SIZE
- INLINE_RESERVED_SIZE

Then, when inline_{data,dentry} options is enabled, it allows us to
reserve inline space with different size flexibly for adding newly
introduced inode attribute.

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