block: Declare several function pointer arguments 'const'
authorBart Van Assche <bvanassche@acm.org>
Thu, 1 Aug 2019 22:50:40 +0000 (15:50 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 5 Aug 2019 03:41:29 +0000 (21:41 -0600)
commitaf2c68fe94e8c0a628519b60ba070c5cf6526a99
treef394ff2b1c491e1c0dc63ef7bc8e04e77de98e99
parenta87ccce0b5a06ee546931859fa62e10f1bce54f9
block: Declare several function pointer arguments 'const'

Make it clear to the compiler and also to humans that the functions
that query request queue properties do not modify any member of the
request_queue data structure.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: Hannes Reinecke <hare@suse.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c
include/linux/blkdev.h