diff options
author | Christoph Hellwig <hch@lst.de> | 2010-08-07 12:17:56 -0400 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2010-08-07 12:17:56 -0400 |
commit | 33659ebbae262228eef4e0fe990f393d1f0ed941 (patch) | |
tree | fcb537f09359c8dad3a6f6e16dc4319562dc42cc /drivers/block/xen-blkfront.c | |
parent | 7e005f79791dcd58436c88ded4a7f5aed1b82147 (diff) |
block: remove wrappers for request type/flags
Remove all the trivial wrappers for the cmd_type and cmd_flags fields in
struct requests. This allows much easier grepping for different request
types instead of unwinding through macros.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'drivers/block/xen-blkfront.c')
-rw-r--r-- | drivers/block/xen-blkfront.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c index 82ed403147c0..495533e66542 100644 --- a/drivers/block/xen-blkfront.c +++ b/drivers/block/xen-blkfront.c | |||
@@ -238,7 +238,7 @@ static int blkif_queue_request(struct request *req) | |||
238 | 238 | ||
239 | ring_req->operation = rq_data_dir(req) ? | 239 | ring_req->operation = rq_data_dir(req) ? |
240 | BLKIF_OP_WRITE : BLKIF_OP_READ; | 240 | BLKIF_OP_WRITE : BLKIF_OP_READ; |
241 | if (blk_barrier_rq(req)) | 241 | if (req->cmd_flags & REQ_HARDBARRIER) |
242 | ring_req->operation = BLKIF_OP_WRITE_BARRIER; | 242 | ring_req->operation = BLKIF_OP_WRITE_BARRIER; |
243 | 243 | ||
244 | ring_req->nr_segments = blk_rq_map_sg(req->q, req, info->sg); | 244 | ring_req->nr_segments = blk_rq_map_sg(req->q, req, info->sg); |
@@ -309,7 +309,7 @@ static void do_blkif_request(struct request_queue *rq) | |||
309 | 309 | ||
310 | blk_start_request(req); | 310 | blk_start_request(req); |
311 | 311 | ||
312 | if (!blk_fs_request(req)) { | 312 | if (req->cmd_type != REQ_TYPE_FS) { |
313 | __blk_end_request_all(req, -EIO); | 313 | __blk_end_request_all(req, -EIO); |
314 | continue; | 314 | continue; |
315 | } | 315 | } |