]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
dm btree remove: fix bug in remove_one()
authorJoe Thornber <ejt@redhat.com>
Fri, 7 Aug 2015 15:33:01 +0000 (16:33 +0100)
committerMike Snitzer <snitzer@redhat.com>
Fri, 7 Aug 2015 15:56:43 +0000 (11:56 -0400)
commitaa0cd28d057fd4cb686fbdd2475a6a3f609dd581
treebaaf9c352522d846c240d9c3bad4606fac9d27e3
parentbd4aaf8f9b85d6b2df3231fd62b219ebb75d3568
dm btree remove: fix bug in remove_one()

remove_one() was not incrementing the key for the beginning of the
range, so not all entries were being removed.  This resulted in
discards that were not unmapping all blocks.

Fixes: 4ec331c3ea ("dm btree: add dm_btree_remove_leaves()")
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/persistent-data/dm-btree-remove.c