summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJinoh Kang <jinoh.kang.kr@gmail.com>2021-01-17 11:49:33 +0000
committerMike Snitzer <snitzer@redhat.com>2021-02-03 10:10:05 -0500
commit4c9e9883c20a3ad5384e689bdbb1d0677da4094c (patch)
tree89cadff58cb47d9b266138b57a17f867a23a5f8f /tools
parent62f263178c16df300f92098c1a6edca0be7d204d (diff)
downloadlinux-4c9e9883c20a3ad5384e689bdbb1d0677da4094c.tar.bz2
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>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions