]> git.baikalelectronics.ru Git - kernel.git/commit
dm persistent data: fix nested btree deletion
authorJoe Thornber <ejt@redhat.com>
Fri, 21 Dec 2012 20:23:32 +0000 (20:23 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 21 Dec 2012 20:23:32 +0000 (20:23 +0000)
commit2961595a82a2f2b3eea916247e8c4bbf88ff27e1
treefbcfb3427b34d8469e404d5b8f63c4dc9c0f98c8
parentfc038ff8cfb1b3395ead455a8a5d1f7c038d1d78
dm persistent data: fix nested btree deletion

When deleting nested btrees, the code forgets to delete the innermost
btree.  The thin-metadata code serendipitously compensates for this by
claiming there is one extra layer in the tree.

This patch corrects both problems.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-thin-metadata.c
drivers/md/persistent-data/dm-btree.c