subr_disk.c (134038) | subr_disk.c (138800) |
---|---|
1/* 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7 * ---------------------------------------------------------------------------- 8 */ 9 10#include <sys/cdefs.h> | 1/* 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7 * ---------------------------------------------------------------------------- 8 */ 9 10#include <sys/cdefs.h> |
11__FBSDID("$FreeBSD: head/sys/kern/subr_disk.c 134038 2004-08-19 19:51:51Z phk $"); | 11__FBSDID("$FreeBSD: head/sys/kern/subr_disk.c 138800 2004-12-13 12:57:21Z pjd $"); |
12 13#include "opt_geom.h" 14 15#include <sys/param.h> 16#include <sys/systm.h> 17#include <sys/bio.h> 18#include <sys/conf.h> 19#include <sys/disk.h> --- 74 unchanged lines hidden (view full) --- 94{ 95 struct bio *bp; 96 97 while ((bp = bioq_takefirst(head)) != NULL) 98 biofinish(bp, stp, error); 99} 100 101void | 12 13#include "opt_geom.h" 14 15#include <sys/param.h> 16#include <sys/systm.h> 17#include <sys/bio.h> 18#include <sys/conf.h> 19#include <sys/disk.h> --- 74 unchanged lines hidden (view full) --- 94{ 95 struct bio *bp; 96 97 while ((bp = bioq_takefirst(head)) != NULL) 98 biofinish(bp, stp, error); 99} 100 101void |
102bioq_insert_head(struct bio_queue_head *head, struct bio *bp) 103{ 104 105 TAILQ_INSERT_HEAD(&head->queue, bp, bio_queue); 106} 107 108void |
|
102bioq_insert_tail(struct bio_queue_head *head, struct bio *bp) 103{ 104 105 TAILQ_INSERT_TAIL(&head->queue, bp, bio_queue); 106} 107 108struct bio * 109bioq_first(struct bio_queue_head *head) --- 128 unchanged lines hidden --- | 109bioq_insert_tail(struct bio_queue_head *head, struct bio *bp) 110{ 111 112 TAILQ_INSERT_TAIL(&head->queue, bp, bio_queue); 113} 114 115struct bio * 116bioq_first(struct bio_queue_head *head) --- 128 unchanged lines hidden --- |