This patch adds basic inode flags for inline xattrs, F2FS_INLINE_XATTR,
and add a mount option, inline_xattr, which is enabled when xattr is set.
If the mount option is enabled, all the files are marked with the inline_xattrs
flag.
Signed-off-by: Jaegeuk Kim jaegeuk@samsung.com
---
The __find_xattr is to search the wanted xattr entry starting from the
base_addr.
If not found, the returned entry is the last empty xattr entry that can be
allocated newly.
Signed-off-by: Jaegeuk Kim jaegeuk@samsung.com
---
fs/f2fs/xattr.c | 46
0. modified inode structure
--
metadata (e.g., i_mtime, i_ctime, etc)
--
direct pointers [0 ~ 873]
inline xattrs (200 bytes by default)
indirect pointers [0 ~ 4]
--
node footer
The truncate_xattr_node function will be used by inline xattr.
Signed-off-by: Jaegeuk Kim jaegeuk@samsung.com
---
fs/f2fs/f2fs.h | 1 +
fs/f2fs/node.c | 39 ---
2 files changed, 29 insertions(+), 11 deletions(-)
diff --git a/fs/f2fs/f2fs.h