This is a note to let you know that I've just added the patch titled block: constify the lim argument to queue_limits_max_zone_append_sectors to the 6.11-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: block-constify-the-lim-argument-to-queue_limits_max_.patch and it can be found in the queue-6.11 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. commit 9cc3b69fb6faf82863c9ea1643c53ab7c2765b01 Author: Christoph Hellwig <hch@xxxxxx> Date: Mon Aug 26 19:37:55 2024 +0200 block: constify the lim argument to queue_limits_max_zone_append_sectors [ Upstream commit 379b122a3ec8033aa43cb70e8ecb6fb7f98aa68f ] queue_limits_max_zone_append_sectors doesn't change the lim argument, so mark it as const. Signed-off-by: Christoph Hellwig <hch@xxxxxx> Reviewed-by: Damien Le Moal <dlemoal@xxxxxxxxxx> Tested-by: Hans Holmberg <hans.holmberg@xxxxxxx> Reviewed-by: Hans Holmberg <hans.holmberg@xxxxxxx> Link: https://lore.kernel.org/r/20240826173820.1690925-3-hch@xxxxxx Signed-off-by: Jens Axboe <axboe@xxxxxxxxx> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx> diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index b7664d593486a..643c9020a35a6 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1187,7 +1187,8 @@ static inline unsigned int queue_max_segment_size(const struct request_queue *q) return q->limits.max_segment_size; } -static inline unsigned int queue_limits_max_zone_append_sectors(struct queue_limits *l) +static inline unsigned int +queue_limits_max_zone_append_sectors(const struct queue_limits *l) { unsigned int max_sectors = min(l->chunk_sectors, l->max_hw_sectors);