add patch return-EFSBADCRC-on-csum-error-in-ext4_find_entry
[ext4-patch-queue.git] / move-struct-xattr-inode-array-to-xattr_h
blob57b9f86aa3a42bc1626390f5fe4373a3c3645fbd
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
6 xattr header file.
8 Signed-off-by: Tahsin Erdogan <tahsin@google.com>
9 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
10 ---
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
17 --- a/fs/ext4/ext4.h
18 +++ b/fs/ext4/ext4.h
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];
26 -};
27  /* bitmap.c */
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
32 --- a/fs/ext4/xattr.h
33 +++ b/fs/ext4/xattr.h
34 @@ -117,6 +117,11 @@ struct ext4_xattr_ibody_find {
35         struct ext4_iloc iloc;
36  };
38 +struct ext4_xattr_inode_array {
39 +       unsigned int count;             /* # of used items in the array */
40 +       struct inode *inodes[0];
41 +};
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;
46 -- 
47 2.13.1.611.g7e3b11ae1-goog