Add bioq_insert_head() function.
OK'd by: phk
This commit is contained in:
parent
125eb366ea
commit
bf4843166f
@ -98,6 +98,13 @@ bioq_flush(struct bio_queue_head *head, struct devstat *stp, int error)
|
||||
biofinish(bp, stp, error);
|
||||
}
|
||||
|
||||
void
|
||||
bioq_insert_head(struct bio_queue_head *head, struct bio *bp)
|
||||
{
|
||||
|
||||
TAILQ_INSERT_HEAD(&head->queue, bp, bio_queue);
|
||||
}
|
||||
|
||||
void
|
||||
bioq_insert_tail(struct bio_queue_head *head, struct bio *bp)
|
||||
{
|
||||
|
@ -118,6 +118,7 @@ struct bio *bioq_first(struct bio_queue_head *head);
|
||||
struct bio *bioq_takefirst(struct bio_queue_head *head);
|
||||
void bioq_flush(struct bio_queue_head *head, struct devstat *stp, int error);
|
||||
void bioq_init(struct bio_queue_head *head);
|
||||
void bioq_insert_head(struct bio_queue_head *head, struct bio *bp);
|
||||
void bioq_insert_tail(struct bio_queue_head *head, struct bio *bp);
|
||||
void bioq_remove(struct bio_queue_head *head, struct bio *bp);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user