diff options
author | Mike Christie <mchristi@redhat.com> | 2016-06-05 15:32:17 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-06-07 15:41:38 -0400 |
commit | c2df40dfb8c015211ec55f4b1dd0587f875c7b34 (patch) | |
tree | 8660ea8a2a00b0248fa609e7e6b737a8d92306d9 /drivers/block/mtip32xx | |
parent | d9d8c5c489f4969667a05727e9c2c4f78cffef1a (diff) |
drivers: use req op accessor
The req operation REQ_OP is separated from the rq_flag_bits
definition. This converts the block layer drivers to
use req_op to get the op from the request struct.
Signed-off-by: Mike Christie <mchristi@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/mtip32xx')
-rw-r--r-- | drivers/block/mtip32xx/mtip32xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c index 6053e4659fa2..8e3e708cb9ee 100644 --- a/drivers/block/mtip32xx/mtip32xx.c +++ b/drivers/block/mtip32xx/mtip32xx.c | |||
@@ -3765,7 +3765,7 @@ static int mtip_submit_request(struct blk_mq_hw_ctx *hctx, struct request *rq) | |||
3765 | return -ENODATA; | 3765 | return -ENODATA; |
3766 | } | 3766 | } |
3767 | 3767 | ||
3768 | if (rq->cmd_flags & REQ_DISCARD) { | 3768 | if (req_op(rq) == REQ_OP_DISCARD) { |
3769 | int err; | 3769 | int err; |
3770 | 3770 | ||
3771 | err = mtip_send_trim(dd, blk_rq_pos(rq), blk_rq_sectors(rq)); | 3771 | err = mtip_send_trim(dd, blk_rq_pos(rq), blk_rq_sectors(rq)); |