Revert "ext4: return error on ext4_find_inline_entry"
This reverts commit 84e6545d45
.
This commit is contained in:
parent
c3584f20ca
commit
484646c44e
1 changed files with 3 additions and 7 deletions
|
@ -1672,9 +1672,8 @@ struct buffer_head *ext4_find_inline_entry(struct inode *dir,
|
|||
void *inline_start;
|
||||
int inline_size;
|
||||
|
||||
ret = ext4_get_inode_loc(dir, &iloc);
|
||||
if (ret)
|
||||
return ERR_PTR(ret);
|
||||
if (ext4_get_inode_loc(dir, &iloc))
|
||||
return NULL;
|
||||
|
||||
down_read(&EXT4_I(dir)->xattr_sem);
|
||||
if (!ext4_has_inline_data(dir)) {
|
||||
|
@ -1705,10 +1704,7 @@ struct buffer_head *ext4_find_inline_entry(struct inode *dir,
|
|||
|
||||
out:
|
||||
brelse(iloc.bh);
|
||||
if (ret < 0)
|
||||
iloc.bh = ERR_PTR(ret);
|
||||
else
|
||||
iloc.bh = NULL;
|
||||
iloc.bh = NULL;
|
||||
out_find:
|
||||
up_read(&EXT4_I(dir)->xattr_sem);
|
||||
return iloc.bh;
|
||||
|
|
Loading…
Add table
Reference in a new issue