f2fs: introduce private inode status mapping
authorChao Yu <yuchao0@huawei.com>
Tue, 3 Apr 2018 07:08:17 +0000 (15:08 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 28 Jun 2018 21:39:27 +0000 (14:39 -0700)
commit39c9aacbcdbf18a56655eb1411b3ac67dda13291
treeaf45697b70fb1216bfdae65eccc4123207028a4b
parent755a8a8a3bfc131cd4da9caa28e623493c5f1167
f2fs: introduce private inode status mapping

Previously, we use generic FS_*_FL defined by vfs to indicate inode status
for each bit of i_flags, so f2fs's flag status definition is tied to vfs'
one, it will be hard for f2fs to reuse bits f2fs never used to indicate
new status..

In order to solve this issue, we introduce private inode status mapping,
Note, for these bits have already been persisted into disk, we should
never change their definition, for other ones, we can remap them for
later new coming status.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/inode.c
fs/f2fs/namei.c
fs/f2fs/super.c