diff mbox series

[1/2] block: initialize max_hw_zone_append_sectors in blk_set_stacking_limits

Message ID 20241105154817.459638-2-hch@lst.de (mailing list archive)
State New
Headers show
Series [1/2] block: initialize max_hw_zone_append_sectors in blk_set_stacking_limits | expand

Commit Message

Christoph Hellwig Nov. 5, 2024, 3:48 p.m. UTC
Because max_zone_append_sectors is now just derived from it.

Fixes: 2a8f6153e1c2 ("block: pre-calculate max_zone_append_sectors")
Reported-by: Yi Zhang <yi.zhang@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 block/blk-settings.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/block/blk-settings.c b/block/blk-settings.c
index 5cb69d85af0e..7d6b296997c2 100644
--- a/block/blk-settings.c
+++ b/block/blk-settings.c
@@ -50,7 +50,7 @@  void blk_set_stacking_limits(struct queue_limits *lim)
 	lim->max_sectors = UINT_MAX;
 	lim->max_dev_sectors = UINT_MAX;
 	lim->max_write_zeroes_sectors = UINT_MAX;
-	lim->max_zone_append_sectors = UINT_MAX;
+	lim->max_hw_zone_append_sectors = UINT_MAX;
 	lim->max_user_discard_sectors = UINT_MAX;
 }
 EXPORT_SYMBOL(blk_set_stacking_limits);