dm space map common: fix division bug in sm_ll_find_free_block()
authorJoe Thornber <ejt@redhat.com>
Tue, 13 Apr 2021 08:11:53 +0000 (09:11 +0100)
committerMike Snitzer <snitzer@redhat.com>
Mon, 19 Apr 2021 16:48:13 +0000 (12:48 -0400)
commit5208692e80a1f3c8ce2063a22b675dd5589d1d80
tree62b5b0f708c857cc278e8e4ce47f7ae5b126329f
parenta88b2358f1da2c9f9fcc432f2e0a79617fea397c
dm space map common: fix division bug in sm_ll_find_free_block()

This division bug meant the search for free metadata space could skip
the final allocation bitmap's worth of entries. Fix affects DM thinp,
cache and era targets.

Cc: stable@vger.kernel.org
Signed-off-by: Joe Thornber <ejt@redhat.com>
Tested-by: Ming-Hung Tsai <mtsai@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/persistent-data/dm-space-map-common.c