Commits
Vasily Averin authored and Konstantin Khorenko committed f492b8d0248
ext4 resise: extra brelse in setup_new_flex_group_blocks() currently bh is set to NULL only during first iteration of for cycle, then this pointer is not cleared after end of using. Therefore rollback after errors can lead to extra brelse(bh) call, decrements bh counter and later trigger an unexpected warning in __brelse() Patch moves brelse() calls in body of cycle to exclude requirement of brelse() call in rollback. Fixes 33afdcc5402d ("ext4: add a function which sets up group blocks ...") VvS: was sent to mainline fixes warning in __brelse "VFS: brelse: Trying to free free buffer" https://jira.sw.ru/browse/PSBM-89583 Signed-off-by: Vasily Averin <vvs@virtuozzo.com>