block: simplify the check for the current elevator in elv_iosched_show
authorChristoph Hellwig <hch@lst.de>
Sun, 30 Oct 2022 10:07:12 +0000 (11:07 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Nov 2022 14:02:47 +0000 (08:02 -0600)
commit2eef17a209ab4d77923222045d462d379d6ef692
treef96524bf780da5f5c3bae7c5b01124e95114e42d
parent16095af2fa2c3089ff1162e677d6596772f6f478
block: simplify the check for the current elevator in elv_iosched_show

Just compare the pointers instead of using the string based
elevator_match.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20221030100714.876891-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/elevator.c