block: use blk_op_str() in blk-mq-debugfs.c
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Thu, 20 Jun 2019 17:59:17 +0000 (10:59 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Jun 2019 19:03:51 +0000 (13:03 -0600)
commit874c893bf07b88d25c6d1db3e1d14e582f838281
treec9920b0424ec498a4d27f902d5bdd6d4405c7159
parente47bc4eda953928644109101d07c9c95dc29a458
block: use blk_op_str() in blk-mq-debugfs.c

Now that we've a helper function blk_op_str() to convert the
REQ_OP_XXX to string XXX, adjust the code to use that. Get rid of
the duplicate array op_name which is now present in the blk-core.c
which we renamed it to "blk_op_name" and open coding in the
blk-mq-debugfs.c.

Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-debugfs.c