aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/f2fs_fs.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2013-08-08 02:16:22 -0400
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-08-26 07:02:12 -0400
commit444c580f7e9ad29927a5d5269d576bd7cdccebb8 (patch)
treece7dd44ceb0a7da467c61f58903a4e151db2af7c /include/linux/f2fs_fs.h
parent6e6b978c32bacd98a93e34af7f4222e76007705f (diff)
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/linux/f2fs_fs.h')
-rw-r--r--include/linux/f2fs_fs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/f2fs_fs.h b/include/linux/f2fs_fs.h
index 383d5e39b280..10ab11f8f99d 100644
--- a/include/linux/f2fs_fs.h
+++ b/include/linux/f2fs_fs.h
@@ -144,10 +144,12 @@ struct f2fs_extent {
144#define ADDRS_PER_BLOCK 1018 /* Address Pointers in a Direct Block */ 144#define ADDRS_PER_BLOCK 1018 /* Address Pointers in a Direct Block */
145#define NIDS_PER_BLOCK 1018 /* Node IDs in an Indirect Block */ 145#define NIDS_PER_BLOCK 1018 /* Node IDs in an Indirect Block */
146 146
147#define F2FS_INLINE_XATTR 0x01 /* file inline xattr flag */
148
147struct f2fs_inode { 149struct f2fs_inode {
148 __le16 i_mode; /* file mode */ 150 __le16 i_mode; /* file mode */
149 __u8 i_advise; /* file hints */ 151 __u8 i_advise; /* file hints */
150 __u8 i_reserved; /* reserved */ 152 __u8 i_inline; /* file inline flags */
151 __le32 i_uid; /* user ID */ 153 __le32 i_uid; /* user ID */
152 __le32 i_gid; /* group ID */ 154 __le32 i_gid; /* group ID */
153 __le32 i_links; /* links count */ 155 __le32 i_links; /* links count */