block: don't check for required features in elevator_match
authorChristoph Hellwig <hch@lst.de>
Sun, 30 Oct 2022 10:07:13 +0000 (11:07 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Nov 2022 15:12:05 +0000 (09:12 -0600)
commitffb86425ee2cadbe573c483b789aab2dd57aeb7b
tree6b1f35355fef7da011d7f4b01f1f67221bbe7ace
parent2eef17a209ab4d77923222045d462d379d6ef692
block: don't check for required features in elevator_match

Checking for the required features in the callers simplifies the code
quite a bit, so do that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20221030100714.876891-7-hch@lst.de
[axboe: adjust for dropping patch 1, use __elevator_find()]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/elevator.c