block: mq-deadline: Simplify deadline_skip_seq_writes()
authorBart Van Assche <bvanassche@acm.org>
Wed, 17 May 2023 17:42:25 +0000 (10:42 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 19 May 2023 01:47:49 +0000 (19:47 -0600)
commit3b463cbea908a9c8d4b9eda09765070506864cbe
tree5043426831e7c3b68cad34d3391b7ccd4a362ce5
parente0d85cde95bba7d40caa3bf9bc41ee810f0e96df
block: mq-deadline: Simplify deadline_skip_seq_writes()

Make the deadline_skip_seq_writes() code shorter without changing its
functionality.

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