]> git.karo-electronics.de Git - karo-tx-linux.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>
Tue, 7 Jan 2014 19:13:28 +0000 (14:13 -0500)
commit681b170cb4cb7c0bac97388c7118f466bd6bffdd
tree2537389343636ffa174729b3a75f41080777711f
parenta6beed75ad3d8c0cb5775ec09c0ee11e66683d40
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