nilfs2: fix missing block address termination in btree node shrinking
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Wed, 25 May 2011 14:00:27 +0000 (23:00 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sat, 11 Jun 2011 06:51:15 +0000 (15:51 +0900)
commitd40990537c9ea85dfe75dbe0ffba5e1002dfdf3f
tree3db27e3e911428502942c95b9f8f52e2a041bd54
parentfe744fdb74f2417d8571faefa45f72b0ead25f89
nilfs2: fix missing block address termination in btree node shrinking

nilfs_btree_delete function does not terminate part of virtual block
addresses when shrinking the last remaining child node into the root
node.  The missing address termination causes that dead btree node
blocks persist and chip away free disk space.

This fixes the leak bug on the btree node deletion.

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