diff options
author | Christoph Hellwig <hch@infradead.org> | 2014-02-21 00:32:36 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-03-21 15:41:45 +0100 |
commit | 081241e592c47f4ed2999a0b576ae85e765c6da4 (patch) | |
tree | 37e533e848422fe4cc2247df7f54e435579aac87 /block/blk-mq.c | |
parent | blk-mq: don't dump CPU -> hw queue map on driver load (diff) | |
download | linux-081241e592c47f4ed2999a0b576ae85e765c6da4.tar.xz linux-081241e592c47f4ed2999a0b576ae85e765c6da4.zip |
blk-mq: remove blk_mq_alloc_rq
There's only one caller, which is a straight wrapper and fits the naming
scheme of the related functions a lot better.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r-- | block/blk-mq.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index 3b1c425a935e..a56e77383738 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -73,8 +73,8 @@ static void blk_mq_hctx_mark_pending(struct blk_mq_hw_ctx *hctx, set_bit(ctx->index_hw, hctx->ctx_map); } -static struct request *blk_mq_alloc_rq(struct blk_mq_hw_ctx *hctx, gfp_t gfp, - bool reserved) +static struct request *__blk_mq_alloc_request(struct blk_mq_hw_ctx *hctx, + gfp_t gfp, bool reserved) { struct request *rq; unsigned int tag; @@ -193,12 +193,6 @@ static void blk_mq_rq_ctx_init(struct request_queue *q, struct blk_mq_ctx *ctx, ctx->rq_dispatched[rw_is_sync(rw_flags)]++; } -static struct request *__blk_mq_alloc_request(struct blk_mq_hw_ctx *hctx, - gfp_t gfp, bool reserved) -{ - return blk_mq_alloc_rq(hctx, gfp, reserved); -} - static struct request *blk_mq_alloc_request_pinned(struct request_queue *q, int rw, gfp_t gfp, bool reserved) |