dm thin metadata: fix __udivdi3 undefined on 32-bit
authorMike Snitzer <snitzer@redhat.com>
Fri, 14 Sep 2018 01:16:20 +0000 (21:16 -0400)
committerMike Snitzer <snitzer@redhat.com>
Mon, 17 Sep 2018 15:49:34 +0000 (11:49 -0400)
commit013ad043906b2befd4a9bfb06219ed9fedd92716
treeacdb40e9deeef5a433b8c64533234bc49ea68f95
parent7876320f88802b22d4e2daf7eb027dd14175a0f8
dm thin metadata: fix __udivdi3 undefined on 32-bit

sector_div() is only viable for use with sector_t.
dm_block_t is typedef'd to uint64_t -- so use div_u64() instead.

Fixes: 3ab918281 ("dm thin metadata: try to avoid ever aborting transactions")
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-thin-metadata.c