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)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:09:50 +0000 (13:09 +0000)
commit221b6788675ff0cbfde05b9719754b03941b6c8d
tree3478cbb900c62c078d8c710ccc6a725370fc39ba
parentaed5ed533901a7a941b7e613a60cdce77b87705c
dm thin metadata: delete btrees when releasing metadata snapshot

commit 7f518ad0a212e2a6fd68630e176af1de395070a7 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-thin-metadata.c