From: Damien Le Moal Date: Thu, 4 Jul 2024 13:45:00 +0000 (+0200) Subject: dm: Remove max_write_zeroes_granularity X-Git-Tag: v6.11-rc1~113^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=396a27e91265a6632be17bebacb6743f0b9447be;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Mikulas Patocka --- diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 3763b2ce557b0..a63efa2a46aef 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; diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index 3611b230d0aa2..5b7e96653ec6e 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h @@ -369,12 +369,6 @@ struct dm_target { */ bool max_secure_erase_granularity:1; - /* - * Set if this target requires that write_zeroes be split on - * 'max_write_zeroes_sectors' boundaries. - */ - bool max_write_zeroes_granularity:1; - /* * Set if we need to limit the number of in-flight bios when swapping. */