aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2014-05-27 14:59:46 -0400
committerJens Axboe <axboe@fb.com>2014-05-28 11:49:19 -0400
commit4ce01dd1a07d9cf3eaf44fbf4ea9a61b11badccc (patch)
treed3314a1d9affb10f9397d4351df26f4a95a5f047 /include
parent6fca6a611c27f1f0d90fbe1cc3c229dbf8c09e48 (diff)
blk-mq: merge blk_mq_alloc_reserved_request into blk_mq_alloc_request
Instead of having two almost identical copies of the same code just let the callers pass in the reserved flag directly. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/blk-mq.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h
index b9a74a386dbc..2bd82f399128 100644
--- a/include/linux/blk-mq.h
+++ b/include/linux/blk-mq.h
@@ -160,8 +160,8 @@ void blk_mq_insert_request(struct request *, bool, bool, bool);
160void blk_mq_run_queues(struct request_queue *q, bool async); 160void blk_mq_run_queues(struct request_queue *q, bool async);
161void blk_mq_free_request(struct request *rq); 161void blk_mq_free_request(struct request *rq);
162bool blk_mq_can_queue(struct blk_mq_hw_ctx *); 162bool blk_mq_can_queue(struct blk_mq_hw_ctx *);
163struct request *blk_mq_alloc_request(struct request_queue *q, int rw, gfp_t gfp); 163struct request *blk_mq_alloc_request(struct request_queue *q, int rw,
164struct request *blk_mq_alloc_reserved_request(struct request_queue *q, int rw, gfp_t gfp); 164 gfp_t gfp, bool reserved);
165struct request *blk_mq_tag_to_rq(struct blk_mq_tags *tags, unsigned int tag); 165struct request *blk_mq_tag_to_rq(struct blk_mq_tags *tags, unsigned int tag);
166 166
167struct blk_mq_hw_ctx *blk_mq_map_queue(struct request_queue *, const int ctx_index); 167struct blk_mq_hw_ctx *blk_mq_map_queue(struct request_queue *, const int ctx_index);