linux/drivers/md/persistent-data
Joe Thornber 71fd5ae25d dm persistent data: remove space map ref_count entries if redundant
Save space by removing entries from the space map ref_count tree if
they're no longer needed.

Ref counts are stored in two places: a bitmap if the ref_count is
below 3, or a btree of uint32_t if 3 or above.

When a ref_count that was above 3 drops below we can remove it from
the tree and save some metadata space.  This removal was commented out
before because I was unsure why this was causing under-populated btree
nodes.  Earlier patches have fixed this issue.

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>
2012-03-28 18:41:27 +01:00
..
Kconfig
Makefile
dm-block-manager.c
dm-block-manager.h
dm-btree-internal.h dm persistent data: remove redundant value_size arg from value_ptr 2012-03-28 18:41:25 +01:00
dm-btree-remove.c dm persistent data: remove redundant value_size arg from value_ptr 2012-03-28 18:41:25 +01:00
dm-btree-spine.c
dm-btree.c dm persistent data: remove redundant value_size arg from value_ptr 2012-03-28 18:41:25 +01:00
dm-btree.h
dm-persistent-data-internal.h
dm-space-map-checker.c device-mapper: using EXPORT_SYBOL in dm-space-map-checker.c needs export.h 2011-11-07 10:29:10 -08:00
dm-space-map-checker.h
dm-space-map-common.c dm persistent data: remove space map ref_count entries if redundant 2012-03-28 18:41:27 +01:00
dm-space-map-common.h
dm-space-map-disk.c
dm-space-map-disk.h
dm-space-map-metadata.c
dm-space-map-metadata.h
dm-space-map.h
dm-transaction-manager.c
dm-transaction-manager.h