diff options
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index f9c642b22efa..deb14a728791 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -762,8 +762,9 @@ static int ext4_alloc_branch(handle_t *handle, struct inode *inode, | |||
762 | BUFFER_TRACE(bh, "call get_create_access"); | 762 | BUFFER_TRACE(bh, "call get_create_access"); |
763 | err = ext4_journal_get_create_access(handle, bh); | 763 | err = ext4_journal_get_create_access(handle, bh); |
764 | if (err) { | 764 | if (err) { |
765 | /* Don't brelse(bh) here; it's done in | ||
766 | * ext4_journal_forget() below */ | ||
765 | unlock_buffer(bh); | 767 | unlock_buffer(bh); |
766 | brelse(bh); | ||
767 | goto failed; | 768 | goto failed; |
768 | } | 769 | } |
769 | 770 | ||