]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
block: mq-deadline: Clean up deadline_check_fifo()
authorBart Van Assche <bvanassche@acm.org>
Wed, 17 May 2023 17:42:24 +0000 (10:42 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 19 May 2023 01:47:49 +0000 (19:47 -0600)
commite0d85cde95bba7d40caa3bf9bc41ee810f0e96df
tree8327888616bfed2d31277aa0d2eafcebc76367d0
parent19821fee3ed42e5b294e95814892d0ad6a9890c9
block: mq-deadline: Clean up deadline_check_fifo()

Change the return type of deadline_check_fifo() from 'int' into 'bool'.
Use time_is_before_eq_jiffies() instead of time_after_eq(). No
functionality has been changed.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Cc: Damien Le Moal <dlemoal@kernel.org>
Cc: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20230517174230.897144-7-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/mq-deadline.c