projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f32c38
)
ext4: remove unneeded brelse call in ext4_xattr_inode_update_ref()
author
Vasily Averin
<
[email protected]
>
Tue, 6 Nov 2018 22:45:02 +0000
(17:45 -0500)
committer
Theodore Ts'o
<
[email protected]
>
Tue, 6 Nov 2018 22:45:02 +0000
(17:45 -0500)
Signed-off-by: Vasily Averin <
[email protected]
>
Signed-off-by: Theodore Ts'o <
[email protected]
>
fs/ext4/xattr.c
patch
|
blob
|
history
diff --git
a/fs/ext4/xattr.c
b/fs/ext4/xattr.c
index f36fc5d5b257438666641028b8660c0ce3462e91..dc1aeab06dbade6769914ad7d5292935134633b1 100644
(file)
--- a/
fs/ext4/xattr.c
+++ b/
fs/ext4/xattr.c
@@
-1031,10
+1031,8
@@
static int ext4_xattr_inode_update_ref(handle_t *handle, struct inode *ea_inode,
inode_lock(ea_inode);
ret = ext4_reserve_inode_write(handle, ea_inode, &iloc);
- if (ret) {
- iloc.bh = NULL;
+ if (ret)
goto out;
- }
ref_count = ext4_xattr_inode_get_ref(ea_inode);
ref_count += ref_change;
@@
-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);
- iloc.bh = NULL;
if (ret)
ext4_warning_inode(ea_inode,
"ext4_mark_iloc_dirty() failed ret=%d", ret);
out:
- brelse(iloc.bh);
inode_unlock(ea_inode);
return ret;
}