summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
authorDamien Le Moal <dlemoal@kernel.org>2024-07-04 15:45:00 +0200
committerMikulas Patocka <mpatocka@redhat.com>2024-07-10 13:10:06 +0200
commit396a27e91265a6632be17bebacb6743f0b9447be (patch)
tree7a9395ee70f8dc256053c7840c3b5d190d45d39d /drivers/md/dm.c
parentdm vdo indexer: use swap() instead of open coding it (diff)
downloadlinux-396a27e91265a6632be17bebacb6743f0b9447be.tar.xz
linux-396a27e91265a6632be17bebacb6743f0b9447be.zip
dm: Remove max_write_zeroes_granularity
The max_write_zeroes_granularity boolean of struct dm_target is used in __process_abnormal_io() but never set by any target. Remove this field and the dead code using it. Signed-off-by: Damien Le Moal <dlemoal@kernel.org> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r--drivers/md/dm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 3763b2ce557b..a63efa2a46ae 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -1664,8 +1664,6 @@ static blk_status_t __process_abnormal_io(struct clone_info *ci,
case REQ_OP_WRITE_ZEROES:
num_bios = ti->num_write_zeroes_bios;
max_sectors = limits->max_write_zeroes_sectors;
- if (ti->max_write_zeroes_granularity)
- max_granularity = max_sectors;
break;
default:
break;