[f2fs-dev] [PATCH 1/5] f2fs: add flags for inline xattrs

2013-08-26 Thread Jaegeuk Kim
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 ---

[f2fs-dev] [PATCH 3/5] f2fs: introduce __find_xattr for readability

2013-08-26 Thread Jaegeuk Kim
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

[f2fs-dev] [PATCH 5/5] f2fs: support the inline xattrs

2013-08-26 Thread Jaegeuk Kim
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

[f2fs-dev] [PATCH 4/5] f2fs: add the truncate_xattr_node function

2013-08-26 Thread Jaegeuk Kim
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