]> git.baikalelectronics.ru Git - kernel.git/commit
block: change ioprio_valid() to an inline function
authorDamien Le Moal <damien.lemoal@wdc.com>
Wed, 11 Aug 2021 03:36:59 +0000 (12:36 +0900)
committerJens Axboe <axboe@kernel.dk>
Wed, 18 Aug 2021 13:21:11 +0000 (07:21 -0600)
commit6f9ccf48c56ffa470af4c1ee37f7ae237a25905d
tree1d9f304bbc3e11244f921f46b5e88bf3e98c88c0
parent0b447ab9c82a4627d6a8c4231d8e8c0025a14036
block: change ioprio_valid() to an inline function

Change the ioprio_valid() macro in include/usapi/linux/ioprio.h to an
inline function declared on the kernel side in include/linux/ioprio.h.
Also improve checks on the class value by checking the upper bound
value.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Link: https://lore.kernel.org/r/20210811033702.368488-4-damien.lemoal@wdc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/ioprio.h
include/uapi/linux/ioprio.h