android_kernel_google_msm/drivers/md/persistent-data
Joe Thornber 11690e1491 dm space map common: make sure new space is used during extend
commit 12c91a5c2d 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>
2014-02-13 11:51:14 -08:00
..
dm-block-manager.c
dm-block-manager.h
dm-btree-internal.h dm persistent data: rename node to btree_node 2013-01-17 08:50:51 -08:00
dm-btree-remove.c dm persistent data: rename node to btree_node 2013-01-17 08:50:51 -08:00
dm-btree-spine.c dm persistent data: rename node to btree_node 2013-01-17 08:50:51 -08:00
dm-btree.c dm persistent data: rename node to btree_node 2013-01-17 08:50:51 -08:00
dm-btree.h
dm-persistent-data-internal.h
dm-space-map-checker.c dm persistent data: fix allocation failure in space map checker init 2012-07-16 09:04:26 -07:00
dm-space-map-checker.h
dm-space-map-common.c dm space map common: make sure new space is used during extend 2014-02-13 11:51:14 -08:00
dm-space-map-common.h
dm-space-map-disk.c dm persistent data: handle space map checker creation failure 2012-07-16 09:04:26 -07:00
dm-space-map-disk.h
dm-space-map-metadata.c
dm-space-map-metadata.h
dm-space-map.h
dm-transaction-manager.c dm persistent data: handle space map checker creation failure 2012-07-16 09:04:26 -07:00
dm-transaction-manager.h
Kconfig
Makefile