]> git.baikalelectronics.ru Git - kernel.git/commit
dm space map metadata: fix extending the space map
authorJoe Thornber <ejt@redhat.com>
Tue, 7 Jan 2014 15:49:02 +0000 (15:49 +0000)
committerMike Snitzer <snitzer@redhat.com>
Wed, 8 Jan 2014 02:05:18 +0000 (21:05 -0500)
commitdd4a5f24f2f3322a0dc00c3f13ee6eea4f5c3801
tree2537389343636ffa174729b3a75f41080777711f
parent855b925bcf0918a0a056505df71f6ad402a82167
dm space map metadata: fix extending the space map

When extending a metadata space map we should do the first commit whilst
still in bootstrap mode -- a mode where all blocks get allocated in the
new area.

That way the commit overhead is allocated from the newly added space.
Otherwise we risk running out of space.

With this fix, and the previous commit "dm space map common: make sure
new space is used during extend", the following device mapper testsuite
test passes:
 dmtest run --suite thin-provisioning -n /resize_metadata_no_io/

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