From: Tahsin Erdogan Date: Thu, 22 Jun 2017 14:28:38 +0000 (-0400) Subject: ext4: move struct ext4_xattr_inode_array to xattr.h X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~7445^2~24 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=b6d9029df083c0a9ce1d4eda1480105e635e0d61;p=mirror_ubuntu-focal-kernel.git 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 Signed-off-by: Theodore Ts'o --- 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 { # define ATTRIB_NORET __attribute__((noreturn)) # define NORET_AND noreturn, -struct ext4_xattr_inode_array { - unsigned int count; /* # of used items in the array */ - struct inode *inodes[0]; -}; /* bitmap.c */ extern unsigned int ext4_count_free(char *bitmap, unsigned numchars); 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 { struct ext4_iloc iloc; }; +struct ext4_xattr_inode_array { + unsigned int count; /* # of used items in the array */ + struct inode *inodes[0]; +}; + extern const struct xattr_handler ext4_xattr_user_handler; extern const struct xattr_handler ext4_xattr_trusted_handler; extern const struct xattr_handler ext4_xattr_security_handler;