null_blk: Have all null_handle_xxx() return a blk_status_t
authorDamien Le Moal <dlemoal@kernel.org>
Thu, 11 Apr 2024 08:55:00 +0000 (17:55 +0900)
committerJens Axboe <axboe@kernel.dk>
Wed, 17 Apr 2024 14:44:07 +0000 (08:44 -0600)
commitcb9e5273f6d97830c44aeecd28cf5f5723ef2ba3
tree76cf4725ac9a7c577dca590f9559d72b71aa5a3a
parent99a9476b27e89525cef653b91e542baf61f105d2
null_blk: Have all null_handle_xxx() return a blk_status_t

Modify the null_handle_flush() and null_handle_rq() functions to return
a blk_status_t instead of an errno to simplify the call sites of these
functions and to be consistant with other null_handle_xxx() functions.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Nitesh Shetty <nj.shetty@samsung.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20240411085502.728558-2-dlemoal@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk/main.c