diff options
author | Tahsin Erdogan <tahsin@google.com> | 2017-06-22 10:28:38 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2017-06-22 10:28:38 -0400 |
commit | b6d9029df083c0a9ce1d4eda1480105e635e0d61 (patch) | |
tree | bd7cee2cdb7aabbe711fd45004247834b5e895c0 | |
parent | 0421a189bc8cdefa18a34aee962ac0558679b944 (diff) |
ext4: move struct ext4_xattr_inode_array to xattr.h
Since this is a xattr specific data structure it is cleaner to keep it in
xattr header file.
Signed-off-by: Tahsin Erdogan <tahsin@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r-- | fs/ext4/ext4.h | 4 | ||||
-rw-r--r-- | fs/ext4/xattr.h | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 144a2863ba27..6b7c517498c9 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -2243,10 +2243,6 @@ struct mmpd_data { | |||
2243 | # define ATTRIB_NORET __attribute__((noreturn)) | 2243 | # define ATTRIB_NORET __attribute__((noreturn)) |
2244 | # define NORET_AND noreturn, | 2244 | # define NORET_AND noreturn, |
2245 | 2245 | ||
2246 | struct ext4_xattr_inode_array { | ||
2247 | unsigned int count; /* # of used items in the array */ | ||
2248 | struct inode *inodes[0]; | ||
2249 | }; | ||
2250 | /* bitmap.c */ | 2246 | /* bitmap.c */ |
2251 | extern unsigned int ext4_count_free(char *bitmap, unsigned numchars); | 2247 | extern unsigned int ext4_count_free(char *bitmap, unsigned numchars); |
2252 | void ext4_inode_bitmap_csum_set(struct super_block *sb, ext4_group_t group, | 2248 | void ext4_inode_bitmap_csum_set(struct super_block *sb, ext4_group_t group, |
diff --git a/fs/ext4/xattr.h b/fs/ext4/xattr.h index 323eba54f72f..adf761518a73 100644 --- a/fs/ext4/xattr.h +++ b/fs/ext4/xattr.h | |||
@@ -117,6 +117,11 @@ struct ext4_xattr_ibody_find { | |||
117 | struct ext4_iloc iloc; | 117 | struct ext4_iloc iloc; |
118 | }; | 118 | }; |
119 | 119 | ||
120 | struct ext4_xattr_inode_array { | ||
121 | unsigned int count; /* # of used items in the array */ | ||
122 | struct inode *inodes[0]; | ||
123 | }; | ||
124 | |||
120 | extern const struct xattr_handler ext4_xattr_user_handler; | 125 | extern const struct xattr_handler ext4_xattr_user_handler; |
121 | extern const struct xattr_handler ext4_xattr_trusted_handler; | 126 | extern const struct xattr_handler ext4_xattr_trusted_handler; |
122 | extern const struct xattr_handler ext4_xattr_security_handler; | 127 | extern const struct xattr_handler ext4_xattr_security_handler; |