WSL2-Linux-Kernel/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 dm: add persistent data library 2011-10-31 20:19:11 +00:00
Makefile dm: add persistent data library 2011-10-31 20:19:11 +00:00
dm-block-manager.c dm: add persistent data library 2011-10-31 20:19:11 +00:00
dm-block-manager.h dm: add persistent data library 2011-10-31 20:19:11 +00:00
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: add persistent data library 2011-10-31 20:19:11 +00:00
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: add persistent data library 2011-10-31 20:19:11 +00:00
dm-persistent-data-internal.h dm: add persistent data library 2011-10-31 20:19:11 +00:00
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: add persistent data library 2011-10-31 20:19:11 +00:00
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: add persistent data library 2011-10-31 20:19:11 +00:00
dm-space-map-disk.c drivers/md: change module.h -> export.h in persistent-data/dm-* 2011-11-07 10:29:09 -08:00
dm-space-map-disk.h dm: add persistent data library 2011-10-31 20:19:11 +00:00
dm-space-map-metadata.c dm: add persistent data library 2011-10-31 20:19:11 +00:00
dm-space-map-metadata.h dm: add persistent data library 2011-10-31 20:19:11 +00:00
dm-space-map.h dm: add persistent data library 2011-10-31 20:19:11 +00:00
dm-transaction-manager.c drivers/md: change module.h -> export.h in persistent-data/dm-* 2011-11-07 10:29:09 -08:00
dm-transaction-manager.h dm: add persistent data library 2011-10-31 20:19:11 +00:00