Commit 1bfc204d authored by Vasily Averin's avatar Vasily Averin Committed by Theodore Ts'o

ext4: remove unneeded brelse call in ext4_xattr_inode_update_ref()

Signed-off-by: default avatarVasily Averin <vvs@virtuozzo.com>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 4f32c38b
...@@ -1031,10 +1031,8 @@ static int ext4_xattr_inode_update_ref(handle_t *handle, struct inode *ea_inode, ...@@ -1031,10 +1031,8 @@ static int ext4_xattr_inode_update_ref(handle_t *handle, struct inode *ea_inode,
inode_lock(ea_inode); inode_lock(ea_inode);
ret = ext4_reserve_inode_write(handle, ea_inode, &iloc); ret = ext4_reserve_inode_write(handle, ea_inode, &iloc);
if (ret) { if (ret)
iloc.bh = NULL;
goto out; goto out;
}
ref_count = ext4_xattr_inode_get_ref(ea_inode); ref_count = ext4_xattr_inode_get_ref(ea_inode);
ref_count += ref_change; ref_count += ref_change;
...@@ -1080,12 +1078,10 @@ static int ext4_xattr_inode_update_ref(handle_t *handle, struct inode *ea_inode, ...@@ -1080,12 +1078,10 @@ static int ext4_xattr_inode_update_ref(handle_t *handle, struct inode *ea_inode,
} }
ret = ext4_mark_iloc_dirty(handle, ea_inode, &iloc); ret = ext4_mark_iloc_dirty(handle, ea_inode, &iloc);
iloc.bh = NULL;
if (ret) if (ret)
ext4_warning_inode(ea_inode, ext4_warning_inode(ea_inode,
"ext4_mark_iloc_dirty() failed ret=%d", ret); "ext4_mark_iloc_dirty() failed ret=%d", ret);
out: out:
brelse(iloc.bh);
inode_unlock(ea_inode); inode_unlock(ea_inode);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment