summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorTahsin Erdogan <tahsin@google.com>2017-06-22 10:26:31 -0400
committerTheodore Ts'o <tytso@mit.edu>2017-06-22 10:26:31 -0400
commit0421a189bc8cdefa18a34aee962ac0558679b944 (patch)
tree3e701dfeeca3c987d1c815e8fa1461ea979bf8b8 /fs/ext4/ext4.h
parentc1a5d5f6ab21eb7e6ff8cb99489d9001cf2a2850 (diff)
downloadop-kernel-dev-0421a189bc8cdefa18a34aee962ac0558679b944.zip
op-kernel-dev-0421a189bc8cdefa18a34aee962ac0558679b944.tar.gz
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 <tahsin@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 9b6a10e..144a286 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);
OpenPOWER on IntegriCloud