dm persistent data: support space map resizing
authorJoe Thornber <ejt@redhat.com>
Fri, 10 May 2013 13:37:19 +0000 (14:37 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 10 May 2013 13:37:19 +0000 (14:37 +0100)
commit1921c56d95c4ac92b359ad44ffbc1e9a36060b29
tree86d0e844addb338759bf9bae0c8253c7dcb34921
parent5d0db96d13a4e2cd22b52494fb19ce5a9c8b8d90
dm persistent data: support space map resizing

Support extending a dm persistent data metadata space map.

The extend itself is implemented by switching back to the boostrap
allocator and pointing to the new space.  The extra bitmap indexes are
then allocated from the new space, and finally we switch back to the
proper space map ops and tweak the reference counts.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/persistent-data/dm-space-map-metadata.c