summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid10.h
diff options
context:
space:
mode:
authorBryan Gurney <bgurney@redhat.com>2019-08-16 10:09:53 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-29 08:30:24 +0200
commite92dfd8d14032f4f0b6caa833c0af68f933b73ab (patch)
tree7dbe090699f098c6cdc07ce828b04b5fa281e75d /drivers/md/raid10.h
parenta6d64ebeb5eb97228e59d1a8e6009380ba4d9e79 (diff)
downloadlinux-stable-e92dfd8d14032f4f0b6caa833c0af68f933b73ab.tar.gz
linux-stable-e92dfd8d14032f4f0b6caa833c0af68f933b73ab.tar.bz2
linux-stable-e92dfd8d14032f4f0b6caa833c0af68f933b73ab.zip
dm dust: use dust block size for badblocklist index
commit 08c04c84a5cde3af9baac0645a7496d6dcd76822 upstream. Change the "frontend" dust_remove_block, dust_add_block, and dust_query_block functions to store the "dust block number", instead of the sector number corresponding to the "dust block number". For the "backend" functions dust_map_read and dust_map_write, right-shift by sect_per_block_shift. This fixes the inability to emulate failure beyond the first sector of each "dust block" (for devices with a "dust block size" larger than 512 bytes). Fixes: e4f3fabd67480bf ("dm: add dust target") Cc: stable@vger.kernel.org Signed-off-by: Bryan Gurney <bgurney@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/md/raid10.h')
0 files changed, 0 insertions, 0 deletions