aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/blk-core.c')
-rw-r--r--block/blk-core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index d2f23ec5ebfa..fe0d1390b743 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -107,7 +107,7 @@ struct backing_dev_info *blk_get_backing_dev_info(struct block_device *bdev)
107} 107}
108EXPORT_SYMBOL(blk_get_backing_dev_info); 108EXPORT_SYMBOL(blk_get_backing_dev_info);
109 109
110void rq_init(struct request_queue *q, struct request *rq) 110void blk_rq_init(struct request_queue *q, struct request *rq)
111{ 111{
112 memset(rq, 0, sizeof(*rq)); 112 memset(rq, 0, sizeof(*rq));
113 113
@@ -120,6 +120,7 @@ void rq_init(struct request_queue *q, struct request *rq)
120 rq->tag = -1; 120 rq->tag = -1;
121 rq->ref_count = 1; 121 rq->ref_count = 1;
122} 122}
123EXPORT_SYMBOL(blk_rq_init);
123 124
124static void req_bio_endio(struct request *rq, struct bio *bio, 125static void req_bio_endio(struct request *rq, struct bio *bio,
125 unsigned int nbytes, int error) 126 unsigned int nbytes, int error)
@@ -598,7 +599,7 @@ blk_alloc_request(struct request_queue *q, int rw, int priv, gfp_t gfp_mask)
598 if (!rq) 599 if (!rq)
599 return NULL; 600 return NULL;
600 601
601 rq_init(q, rq); 602 blk_rq_init(q, rq);
602 603
603 /* 604 /*
604 * first three bits are identical in rq->cmd_flags and bio->bi_rw, 605 * first three bits are identical in rq->cmd_flags and bio->bi_rw,