Skip to content

Commit

Permalink
blk-mq: kill blk_mq_set_alloc_data()
Browse files Browse the repository at this point in the history
Nothing is using it anymore.

Signed-off-by: Omar Sandoval <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Tested-by: Sagi Grimberg <[email protected]>
  • Loading branch information
osandov authored and axboe committed Mar 2, 2017
1 parent 6d2809d commit 5974839
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions block/blk-mq.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,6 @@ struct blk_mq_alloc_data {
struct blk_mq_hw_ctx *hctx;
};

static inline void blk_mq_set_alloc_data(struct blk_mq_alloc_data *data,
struct request_queue *q, unsigned int flags,
struct blk_mq_ctx *ctx, struct blk_mq_hw_ctx *hctx)
{
data->q = q;
data->flags = flags;
data->ctx = ctx;
data->hctx = hctx;
}

static inline struct blk_mq_tags *blk_mq_tags_from_data(struct blk_mq_alloc_data *data)
{
if (data->flags & BLK_MQ_REQ_INTERNAL)
Expand Down

0 comments on commit 5974839

Please sign in to comment.