From 0421a189bc8cdefa18a34aee962ac0558679b944 Mon Sep 17 00:00:00 2001 From: Tahsin Erdogan Date: Thu, 22 Jun 2017 10:26:31 -0400 Subject: ext4: modify ext4_xattr_ino_array to hold struct inode * Tracking struct inode * rather than the inode number eliminates the repeated ext4_xattr_inode_iget() call later. The second call cannot fail in practice but still requires explanation when it wants to ignore the return value. Avoid the trouble and make things simple. Signed-off-by: Tahsin Erdogan Signed-off-by: Theodore Ts'o --- fs/ext4/ext4.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fs/ext4/ext4.h') diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 9b6a10e1bf18..144a2863ba27 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -2243,9 +2243,9 @@ struct mmpd_data { # define ATTRIB_NORET __attribute__((noreturn)) # define NORET_AND noreturn, -struct ext4_xattr_ino_array { - unsigned int xia_count; /* # of used item in the array */ - unsigned int xia_inodes[0]; +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); -- cgit v1.2.1