aboutsummaryrefslogtreecommitdiff
path: root/drivers/md/persistent-data/dm-space-map-metadata.c
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2014-01-07 15:47:59 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-13 13:48:01 -0800
commit247373410ad9f7f4dfc6a7a9c0bb4bcd0af59491 (patch)
tree83b3478ed7930fb188e69f532666648a4b94cd0c /drivers/md/persistent-data/dm-space-map-metadata.c
parenteef2b6df86323b5c9eaee154174afb1976741f38 (diff)
dm space map common: make sure new space is used during extend
commit 12c91a5c2d2a8e8cc40a9552313e1e7b0a2d9ee3 upstream. When extending a low level space map we should update nr_blocks at the start so the new space is used for the index entries. Otherwise extend can fail, e.g.: sm_metadata_extend call sequence that fails: -> sm_ll_extend -> dm_tm_new_block -> dm_sm_new_block -> sm_bootstrap_new_block => returns -ENOSPC because smm->begin == smm->ll.nr_blocks Signed-off-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/md/persistent-data/dm-space-map-metadata.c')
0 files changed, 0 insertions, 0 deletions