Patch "dm thin metadata: delete btrees when releasing metadata snapshot" has been added to the 4.1-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
dm thin metadata: delete btrees when releasing metadata snapshot
to the 4.1-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
dm-thin-metadata-delete-btrees-when-releasing-metadata-snapshot.patch
and it can be found in the queue-4.1 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
7f518ad0a212e2a6fd68630e176af1de395070a7Mon Sep 17 00:00:00 2001
From: Joe Thornber <[email protected]>
Date: Wed, 12 Aug 2015 15:10:21 +0100
Subject: dm thin metadata: delete btrees when releasing metadata snapshot
From: Joe Thornber <[email protected]>
commit 7f518ad0a212e2a6fd68630e176af1de395070a7 upstream.
The device details and mapping trees were just being decremented before. Now btree_del() is called to do a deep delete.
--- drivers/md/dm-thin-metadata.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/md/dm-thin-metadata.c +2 -2
@@ -1295,8 +1295,8 @@ static int __release_metadata_snap(strucreturn r; disk_super =dm_block_data (copy); -dm_sm_dec_block (pmd->metadata_sm,le64_to_cpu (disk_super->data_mapping_root)); -dm_sm_dec_block (pmd->metadata_sm,le64_to_cpu (disk_super->device_details_root)); +dm_btree_del (&pmd->info,le64_to_cpu (disk_super->data_mapping_root)); +dm_btree_del (&pmd->details_info,le64_to_cpu (disk_super->device_details_root));dm_sm_dec_block (pmd->metadata_sm, held_root);return dm_tm_unlock (pmd->tm, copy);
Patches currently in stable-queue which might be from [email protected] are
queue-4.1/dm-thin-metadata-delete-btrees-when-releasing-metadata-snapshot.patch