aboutsummaryrefslogtreecommitdiff
path: root/drivers/md/dm-era-target.c
diff options
context:
space:
mode:
authorGravatar Joe Thornber <ejt@redhat.com> 2021-04-13 09:03:49 +0100
committerGravatar Mike Snitzer <snitzer@redhat.com> 2021-06-04 12:07:21 -0400
commit5faafc77f7de69147d1e818026b9a0cbf036a7b2 (patch)
tree07331ee521ebc8d3fb15dc3c98acbb71907526d8 /drivers/md/dm-era-target.c
parentdm btree: improve btree residency (diff)
downloadlinux-5faafc77f7de69147d1e818026b9a0cbf036a7b2.tar.gz
linux-5faafc77f7de69147d1e818026b9a0cbf036a7b2.tar.bz2
linux-5faafc77f7de69147d1e818026b9a0cbf036a7b2.zip
dm space maps: don't reset space map allocation cursor when committing
Current commit code resets the place where the search for free blocks will begin back to the start of the metadata device. There are a couple of repercussions to this: - The first allocation after the commit is likely to take longer than normal as it searches for a free block in an area that is likely to have very few free blocks (if any). - Any free blocks it finds will have been recently freed. Reusing them means we have fewer old copies of the metadata to aid recovery from hardware error. Fix these issues by leaving the cursor alone, only resetting when the search hits the end of the metadata device. Signed-off-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-era-target.c')
0 files changed, 0 insertions, 0 deletions