]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ext4: modify ext4_xattr_ino_array to hold struct inode *
authorTahsin Erdogan <tahsin@google.com>
Thu, 22 Jun 2017 14:26:31 +0000 (10:26 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 22 Jun 2017 14:26:31 +0000 (10:26 -0400)
commit0421a189bc8cdefa18a34aee962ac0558679b944
tree3e701dfeeca3c987d1c815e8fa1461ea979bf8b8
parentc1a5d5f6ab21eb7e6ff8cb99489d9001cf2a2850
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>
fs/ext4/ext4.h
fs/ext4/inode.c
fs/ext4/xattr.c
fs/ext4/xattr.h