Skip to content

Commit 379b122

Browse files
Christoph Hellwigaxboe
authored andcommitted
block: constify the lim argument to queue_limits_max_zone_append_sectors
queue_limits_max_zone_append_sectors doesn't change the lim argument, so mark it as const. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Damien Le Moal <[email protected]> Tested-by: Hans Holmberg <[email protected]> Reviewed-by: Hans Holmberg <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent b35243a commit 379b122

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/linux/blkdev.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,8 @@ static inline unsigned int queue_max_segment_size(const struct request_queue *q)
11871187
return q->limits.max_segment_size;
11881188
}
11891189

1190-
static inline unsigned int queue_limits_max_zone_append_sectors(struct queue_limits *l)
1190+
static inline unsigned int
1191+
queue_limits_max_zone_append_sectors(const struct queue_limits *l)
11911192
{
11921193
unsigned int max_sectors = min(l->chunk_sectors, l->max_hw_sectors);
11931194

0 commit comments

Comments
 (0)