Re: [PATCH v2 09/11] ext4: iloc.bh cleanup in add_new_gdb()
From: Theodore Y. Ts'o
Date: Tue Nov 06 2018 - 17:19:10 EST
On Wed, Oct 31, 2018 at 12:58:38AM +0300, Vasily Averin wrote:
> iloc.bh was taken in ext4_reserve_inode_write() and released
> in ext4_mark_iloc_dirty(). It should not be released 2nd time
> in rollback after failed ext4_handle_dirty_metadata(gdb_bh)
>
> Fixes b40971426a83 ("ext4: add error checking to calls to ...") # 2.6.38
>
> Signed-off-by: Vasily Averin <vvs@xxxxxxxxxxxxx>
I fixed this in a simpler way: