]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - block/blk-mq-debugfs.c
block: use req_op() to maintain consistency
[linux.git] / block / blk-mq-debugfs.c
index f0550be608246356225376bf415a0b458ab839b1..5d940ff124a5a076faa008e52d1626599a7bb3fc 100644 (file)
@@ -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])