author: Linus Torvalds <torvalds@linux-foundation.org> 2018-11-11 16:53:02 -0600
committer: Linus Torvalds <torvalds@linux-foundation.org> 2018-11-11 16:53:02 -0600
commit: c140f8b072d16595c83d4d16a05693e72d9b1973
parent: b6df7b6db1c1837fc9eada74ed561cbfe7746755
Commit Summary:
Diffstat:
1 file changed, 3 insertions, 2 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 05f01fbd9c7f..22a9d8159720 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -5835,9 +5835,10 @@ int ext4_mark_iloc_dirty(handle_t *handle,
{
int err = 0;
- if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb))))
+ if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) {
+ put_bh(iloc->bh);
return -EIO;
-
+ }
if (IS_I_VERSION(inode))
inode_inc_iversion(inode);