]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
block: convert nr_requests to unsigned int
authorYu Kuai <yukuai@fnnas.com>
Tue, 3 Feb 2026 08:19:42 +0000 (16:19 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 3 Feb 2026 14:45:36 +0000 (07:45 -0700)
This value represents the number of requests for elevator tags, or drivers
tags if elevator is none. The max value for elevator tags is 2048, and
in drivers at most 16 bits is used for tag.

Signed-off-by: Yu Kuai <yukuai@fnnas.com>
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blkdev.h

index 2ae4c45e495933c2dd89e9c072747145d22a5d81..67d8d9e03abc9b46cb8380bd0da13f27ce0cf705 100644 (file)
@@ -550,7 +550,7 @@ struct request_queue {
        /*
         * queue settings
         */
-       unsigned long           nr_requests;    /* Max # of requests */
+       unsigned int            nr_requests;    /* Max # of requests */
 
 #ifdef CONFIG_BLK_INLINE_ENCRYPTION
        struct blk_crypto_profile *crypto_profile;