block: misc updates to blk_get_queue()
* blk_get_queue() is peculiar in that it returns 0 on success and 1 on failure instead of 0 / -errno or boolean. Update it such that it returns %true on success and %false on failure. * Make sure the caller checks for the return value. * Separate out __blk_get_queue() which doesn't check whether @q is dead and put it in blk.h. This will be used later. This patch doesn't introduce any functional changes. Signed-off-by:Tejun Heo <tj@kernel.org> Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Showing
- block/blk-core.c 4 additions, 4 deletionsblock/blk-core.c
- block/blk.h 5 additions, 0 deletionsblock/blk.h
- block/bsg.c 1 addition, 3 deletionsblock/bsg.c
- block/genhd.c 1 addition, 1 deletionblock/genhd.c
- drivers/scsi/scsi_scan.c 1 addition, 1 deletiondrivers/scsi/scsi_scan.c
- include/linux/blkdev.h 1 addition, 1 deletioninclude/linux/blkdev.h
Please register or sign in to comment