1 ext4: move struct ext4_xattr_inode_array to xattr.h
3 From: Tahsin Erdogan <tahsin@google.com>
5 Since this is a xattr specific data structure it is cleaner to keep it in
8 Signed-off-by: Tahsin Erdogan <tahsin@google.com>
9 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
11 fs/ext4/ext4.h | 4 ----
12 fs/ext4/xattr.h | 5 +++++
13 2 files changed, 5 insertions(+), 4 deletions(-)
15 diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
16 index 603edb5ff304..580fdb753f29 100644
19 @@ -2232,10 +2232,6 @@ struct mmpd_data {
20 # define ATTRIB_NORET __attribute__((noreturn))
21 # define NORET_AND noreturn,
23 -struct ext4_xattr_inode_array {
24 - unsigned int count; /* # of used items in the array */
25 - struct inode *inodes[0];
28 extern unsigned int ext4_count_free(char *bitmap, unsigned numchars);
29 void ext4_inode_bitmap_csum_set(struct super_block *sb, ext4_group_t group,
30 diff --git a/fs/ext4/xattr.h b/fs/ext4/xattr.h
31 index 323eba54f72f..adf761518a73 100644
34 @@ -117,6 +117,11 @@ struct ext4_xattr_ibody_find {
35 struct ext4_iloc iloc;
38 +struct ext4_xattr_inode_array {
39 + unsigned int count; /* # of used items in the array */
40 + struct inode *inodes[0];
43 extern const struct xattr_handler ext4_xattr_user_handler;
44 extern const struct xattr_handler ext4_xattr_trusted_handler;
45 extern const struct xattr_handler ext4_xattr_security_handler;
47 2.13.1.611.g7e3b11ae1-goog