From: Joe Thornber Date: Tue, 7 Jan 2014 15:47:59 +0000 (+0000) Subject: dm space map common: make sure new space is used during extend X-Git-Tag: v3.14-rc1~130^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12c91a5c2d2a8e8cc40a9552313e1e7b0a2d9ee3;p=pandora-kernel.git dm space map common: make sure new space is used during extend 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 Signed-off-by: Mike Snitzer Cc: stable@vger.kernel.org --- Reading git-diff-tree failed