diff options
author | Joe Thornber <ejt@redhat.com> | 2014-01-07 15:47:59 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-13 11:51:14 -0800 |
commit | 11690e1491de3c35b09bff55336c14aacbdf1627 (patch) | |
tree | 55d4879bb25d9455b1140b5c90d82caa3096e989 /kernel/resource.c | |
parent | 39bbeb69ace5742f3cbad2ae77c27bc2fa3c2c0f (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 'kernel/resource.c')
0 files changed, 0 insertions, 0 deletions