dm persistent data: only commit space map if index changed
authorJoe Thornber <ejt@redhat.com>
Fri, 27 Jul 2012 14:08:06 +0000 (15:08 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 27 Jul 2012 14:08:06 +0000 (15:08 +0100)
commitf4b90369d3a9ffe0f48f373c566578c142e95bf2
treea31918eb5bb8a8704bd24812496cf451d302c522
parent8d44c98aac540cdf3cb5385bc6ef8d56930c7d70
dm persistent data: only commit space map if index changed

Introduce bitmap_index_changed to track whether or not the index changed
then only commit a space map if it did.

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