Add bioq_insert_head() function.

OK'd by:	phk
This commit is contained in:
Pawel Jakub Dawidek 2004-12-13 12:57:21 +00:00
parent 125eb366ea
commit bf4843166f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138800
2 changed files with 8 additions and 0 deletions

View File

@ -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)
{

View File

@ -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);