summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorChaitanya Kulkarni2019-06-13 16:14:21 +0200
committerJens Axboe2019-06-17 17:34:18 +0200
commitf9bc64a0f0f884036d76d71edeaafb994c5ceddf (patch)
treebb7eacd312dd5417267a6ce4b4be1cb477839044 /block
parentblkcg, writeback: dead memcgs shouldn't contribute to writeback ownership arb... (diff)
downloadkernel-qcow2-linux-f9bc64a0f0f884036d76d71edeaafb994c5ceddf.tar.gz
kernel-qcow2-linux-f9bc64a0f0f884036d76d71edeaafb994c5ceddf.tar.xz
kernel-qcow2-linux-f9bc64a0f0f884036d76d71edeaafb994c5ceddf.zip
block: use req_op() to maintain consistency
This is a pure code cleanup patch and doesn't change any functionality. In block layer to identify the request operation req_op() macro is used, so change the open coding the req_op() in the blk-mq-debugfs.c. Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r--block/blk-mq-debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c
index f0550be60824..5d940ff124a5 100644
--- a/block/blk-mq-debugfs.c
+++ b/block/blk-mq-debugfs.c
@@ -341,7 +341,7 @@ static const char *blk_mq_rq_state_name(enum mq_rq_state rq_state)
int __blk_mq_debugfs_rq_show(struct seq_file *m, struct request *rq)
{
const struct blk_mq_ops *const mq_ops = rq->q->mq_ops;
- const unsigned int op = rq->cmd_flags & REQ_OP_MASK;
+ const unsigned int op = req_op(rq);
seq_printf(m, "%p {.op=", rq);
if (op < ARRAY_SIZE(op_name) && op_name[op])