Skip to content

Commit a411f4b

Browse files
Boaz HarroshJens Axboe
authored andcommitted
block: Un-export blk_rq_append_bio
OSD was the last in-tree user of blk_rq_append_bio(). Now that it is fixed blk_rq_append_bio is un-exported and is only used internally by block layer. Signed-off-by: Boaz Harrosh <bharrosh@panasas.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
1 parent c29b70f commit a411f4b

3 files changed

Lines changed: 2 additions & 7 deletions

File tree

‎block/blk-map.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ int blk_rq_append_bio(struct request_queue *q, struct request *rq,
2424
}
2525
return 0;
2626
}
27-
EXPORT_SYMBOL(blk_rq_append_bio);
2827

2928
static int __blk_rq_unmap_user(struct bio *bio)
3029
{

‎block/blk.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ extern struct kobj_type blk_queue_ktype;
1313
void init_request_from_bio(struct request *req, struct bio *bio);
1414
void blk_rq_bio_prep(struct request_queue *q, struct request *rq,
1515
struct bio *bio);
16+
int blk_rq_append_bio(struct request_queue *q, struct request *rq,
17+
struct bio *bio);
1618
void blk_dequeue_request(struct request *rq);
1719
void __blk_queue_free_tags(struct request_queue *q);
1820

‎include/linux/blkdev.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -757,12 +757,6 @@ extern int scsi_cmd_ioctl(struct request_queue *, struct gendisk *, fmode_t,
757757
extern int sg_scsi_ioctl(struct request_queue *, struct gendisk *, fmode_t,
758758
struct scsi_ioctl_command __user *);
759759

760-
/*
761-
* Temporary export, until SCSI gets fixed up.
762-
*/
763-
extern int blk_rq_append_bio(struct request_queue *q, struct request *rq,
764-
struct bio *bio);
765-
766760
/*
767761
* A queue has just exitted congestion. Note this in the global counter of
768762
* congested queues, and wake up anyone who was waiting for requests to be

0 commit comments

Comments
 (0)