nilfs2: fix bh leak in nilfs_cpfile_delete_checkpoints function
commit62013ab5d5df297a01ae5863b5c26d758ec0af7f
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sat, 30 May 2009 12:50:58 +0000 (30 21:50 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sat, 30 May 2009 13:07:50 +0000 (30 22:07 +0900)
tree61b8e9b9b0d8e57c0de0f4c87f23a671282bc862
parent59a3759d0fe8d969888c741bb33f4946e4d3750d
nilfs2: fix bh leak in nilfs_cpfile_delete_checkpoints function

The nilfs_cpfile_delete_checkpoints() wrongly skips brelse() for the
header block of checkpoint file in case of errors.  This fixes the
leak bug.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/cpfile.c