diff options
Diffstat (limited to 'fs/ext4/xattr.h')
-rw-r--r-- | fs/ext4/xattr.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/fs/ext4/xattr.h b/fs/ext4/xattr.h index 79432b35398f..d7f5d6a12651 100644 --- a/fs/ext4/xattr.h +++ b/fs/ext4/xattr.h | |||
@@ -56,6 +56,13 @@ struct ext4_xattr_entry { | |||
56 | #define EXT4_XATTR_SIZE(size) \ | 56 | #define EXT4_XATTR_SIZE(size) \ |
57 | (((size) + EXT4_XATTR_ROUND) & ~EXT4_XATTR_ROUND) | 57 | (((size) + EXT4_XATTR_ROUND) & ~EXT4_XATTR_ROUND) |
58 | 58 | ||
59 | #define IHDR(inode, raw_inode) \ | ||
60 | ((struct ext4_xattr_ibody_header *) \ | ||
61 | ((void *)raw_inode + \ | ||
62 | EXT4_GOOD_OLD_INODE_SIZE + \ | ||
63 | EXT4_I(inode)->i_extra_isize)) | ||
64 | #define IFIRST(hdr) ((struct ext4_xattr_entry *)((hdr)+1)) | ||
65 | |||
59 | # ifdef CONFIG_EXT4DEV_FS_XATTR | 66 | # ifdef CONFIG_EXT4DEV_FS_XATTR |
60 | 67 | ||
61 | extern struct xattr_handler ext4_xattr_user_handler; | 68 | extern struct xattr_handler ext4_xattr_user_handler; |
@@ -74,6 +81,9 @@ extern int ext4_xattr_set_handle(handle_t *, struct inode *, int, const char *, | |||
74 | extern void ext4_xattr_delete_inode(handle_t *, struct inode *); | 81 | extern void ext4_xattr_delete_inode(handle_t *, struct inode *); |
75 | extern void ext4_xattr_put_super(struct super_block *); | 82 | extern void ext4_xattr_put_super(struct super_block *); |
76 | 83 | ||
84 | extern int ext4_expand_extra_isize_ea(struct inode *inode, int new_extra_isize, | ||
85 | struct ext4_inode *raw_inode, handle_t *handle); | ||
86 | |||
77 | extern int init_ext4_xattr(void); | 87 | extern int init_ext4_xattr(void); |
78 | extern void exit_ext4_xattr(void); | 88 | extern void exit_ext4_xattr(void); |
79 | 89 | ||
@@ -129,6 +139,13 @@ exit_ext4_xattr(void) | |||
129 | { | 139 | { |
130 | } | 140 | } |
131 | 141 | ||
142 | static inline int | ||
143 | ext4_expand_extra_isize_ea(struct inode *inode, int new_extra_isize, | ||
144 | struct ext4_inode *raw_inode, handle_t *handle) | ||
145 | { | ||
146 | return -EOPNOTSUPP; | ||
147 | } | ||
148 | |||
132 | #define ext4_xattr_handlers NULL | 149 | #define ext4_xattr_handlers NULL |
133 | 150 | ||
134 | # endif /* CONFIG_EXT4DEV_FS_XATTR */ | 151 | # endif /* CONFIG_EXT4DEV_FS_XATTR */ |