diff options
author | Tahsin Erdogan <tahsin@google.com> | 2017-06-22 10:26:31 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2017-06-22 10:26:31 -0400 |
commit | 0421a189bc8cdefa18a34aee962ac0558679b944 (patch) | |
tree | 3e701dfeeca3c987d1c815e8fa1461ea979bf8b8 /fs/ext4/xattr.h | |
parent | c1a5d5f6ab21eb7e6ff8cb99489d9001cf2a2850 (diff) |
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/xattr.h')
-rw-r--r-- | fs/ext4/xattr.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/ext4/xattr.h b/fs/ext4/xattr.h index e82c5fe36a26..323eba54f72f 100644 --- a/fs/ext4/xattr.h +++ b/fs/ext4/xattr.h @@ -164,9 +164,8 @@ extern int ext4_xattr_set_credits(struct inode *inode, size_t value_len); extern int ext4_xattr_inode_unlink(struct inode *inode, unsigned long ea_ino); extern int ext4_xattr_delete_inode(handle_t *handle, struct inode *inode, - struct ext4_xattr_ino_array **array); -extern void ext4_xattr_inode_array_free(struct inode *inode, - struct ext4_xattr_ino_array *array); + struct ext4_xattr_inode_array **array); +extern void ext4_xattr_inode_array_free(struct ext4_xattr_inode_array *array); extern int ext4_expand_extra_isize_ea(struct inode *inode, int new_extra_isize, struct ext4_inode *raw_inode, handle_t *handle); |