dm thin metadata: delete btrees when releasing metadata snapshot
authorJoe Thornber <ejt@redhat.com>
Wed, 12 Aug 2015 14:10:21 +0000 (15:10 +0100)
committerMike Snitzer <snitzer@redhat.com>
Wed, 12 Aug 2015 14:42:51 +0000 (10:42 -0400)
commit7f518ad0a212e2a6fd68630e176af1de395070a7
tree1a4c17847494cef58a695d1421675e5953af5b93
parentf7644cbfcdf03528f0f450f3940c4985b2291f49
dm thin metadata: delete btrees when releasing metadata snapshot

The device details and mapping trees were just being decremented
before.  Now btree_del() is called to do a deep delete.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org
drivers/md/dm-thin-metadata.c