dm cache: discard block size must be a multiple of cache block size
authorJoe Thornber <ejt@redhat.com>
Wed, 26 Nov 2014 16:07:50 +0000 (16:07 +0000)
committerMike Snitzer <snitzer@redhat.com>
Mon, 1 Dec 2014 16:30:11 +0000 (11:30 -0500)
commit2bb812df63bbd246bd39d10f2e810b2a0a59e99e
tree071abce53825307314e1531fb81a3b58619600af
parent43c32bf2b0c16d292f4f214dfd16f9cb205e4e81
dm cache: discard block size must be a multiple of cache block size

Otherwise the cache blocks may span two discard blocks, which we don't
handle when doing the discard lookup.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-target.c