diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-08-08 15:16:22 +0900 |
---|---|---|
committer | Andreas Blaesius <skate4life@gmx.de> | 2016-06-05 21:20:37 +0200 |
commit | 784b58c9b85a107b5bd87eda0a5edf129827befd (patch) | |
tree | 9342f07fae9c410f3a46066c21ede0d354471b3f /include | |
parent | 5d42c1978bc46c712a4025ed6974380d67886c3d (diff) | |
download | kernel_samsung_espresso10-784b58c9b85a107b5bd87eda0a5edf129827befd.zip kernel_samsung_espresso10-784b58c9b85a107b5bd87eda0a5edf129827befd.tar.gz kernel_samsung_espresso10-784b58c9b85a107b5bd87eda0a5edf129827befd.tar.bz2 |
f2fs: add flags for inline xattrs
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.kim@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/f2fs_fs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/f2fs_fs.h b/include/linux/f2fs_fs.h index 383d5e3..10ab11f 100644 --- a/include/linux/f2fs_fs.h +++ b/include/linux/f2fs_fs.h @@ -144,10 +144,12 @@ struct f2fs_extent { #define ADDRS_PER_BLOCK 1018 /* Address Pointers in a Direct Block */ #define NIDS_PER_BLOCK 1018 /* Node IDs in an Indirect Block */ +#define F2FS_INLINE_XATTR 0x01 /* file inline xattr flag */ + struct f2fs_inode { __le16 i_mode; /* file mode */ __u8 i_advise; /* file hints */ - __u8 i_reserved; /* reserved */ + __u8 i_inline; /* file inline flags */ __le32 i_uid; /* user ID */ __le32 i_gid; /* group ID */ __le32 i_links; /* links count */ |