linux/drivers/md/persistent-data
Jinoh Kang 4c9e9883c2 dm persistent data: fix return type of shadow_root()
shadow_root() truncates 64-bit dm_block_t into 32-bit int.  This is
not an issue in practice, since dm metadata as of v5.11 can only hold at
most 4161600 blocks (255 index entries * ~16k metadata blocks).

Nevertheless, this can confuse users debugging some specific data
corruption scenarios.  Also, DM_SM_METADATA_MAX_BLOCKS may be bumped in
the future, or persistent-data may find its use in other places.

Therefore, switch the return type of shadow_root from int to dm_block_t.

Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
2021-02-03 10:10:05 -05:00
..
dm-array.c
dm-array.h
dm-bitset.c
dm-bitset.h
dm-block-manager.c
dm-block-manager.h
dm-btree-internal.h dm persistent data: fix return type of shadow_root() 2021-02-03 10:10:05 -05:00
dm-btree-remove.c
dm-btree-spine.c dm persistent data: fix return type of shadow_root() 2021-02-03 10:10:05 -05:00
dm-btree.c
dm-btree.h
dm-persistent-data-internal.h
dm-space-map-common.c
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
Kconfig
Makefile