summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-02-22 09:26:35 +0000
committerphk <phk@FreeBSD.org>2002-02-22 09:26:35 +0000
commitb9b775cf13e59a7cc373855362fec46d7b862077 (patch)
treec52fd868262e61a637aaf017a4cb137977bf47ce /sys/kern
parent8b5a71f365fa771240bb1b5f8790a9c194013468 (diff)
downloadFreeBSD-src-b9b775cf13e59a7cc373855362fec46d7b862077.zip
FreeBSD-src-b9b775cf13e59a7cc373855362fec46d7b862077.tar.gz
GC: BIO_ORDERED, various infrastructure dealing with BIO_ORDERED.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_devstat.c3
-rw-r--r--sys/kern/subr_disklabel.c3
-rw-r--r--sys/kern/vfs_bio.c2
3 files changed, 2 insertions, 6 deletions
diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c
index 8831a2f..dabdf9d 100644
--- a/sys/kern/subr_devstat.c
+++ b/sys/kern/subr_devstat.c
@@ -240,8 +240,7 @@ devstat_end_transaction_bio(struct devstat *ds, struct bio *bp)
flg = DEVSTAT_WRITE;
devstat_end_transaction(ds, bp->bio_bcount - bp->bio_resid,
- (bp->bio_flags & BIO_ORDERED) ?
- DEVSTAT_TAG_ORDERED : DEVSTAT_TAG_SIMPLE, flg);
+ DEVSTAT_TAG_SIMPLE, flg);
}
/*
diff --git a/sys/kern/subr_disklabel.c b/sys/kern/subr_disklabel.c
index a0f2f3d..05339cb 100644
--- a/sys/kern/subr_disklabel.c
+++ b/sys/kern/subr_disklabel.c
@@ -105,8 +105,7 @@ bioqdisksort(bioq, bp)
* If the queue is empty or we are an
* ordered transaction, then it's easy.
*/
- if ((bq = bioq_first(bioq)) == NULL
- || (bp->bio_flags & BIO_ORDERED) != 0) {
+ if ((bq = bioq_first(bioq)) == NULL) {
bioq_insert_tail(bioq, bp);
bioq->busy = 0;
return;
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 386d1dd..32e91ca 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -1286,7 +1286,6 @@ brelse(struct buf * bp)
BUF_UNLOCK(bp);
bp->b_flags &= ~(B_ASYNC | B_NOCACHE | B_AGE | B_RELBUF |
B_DIRECT | B_NOWDRAIN);
- bp->b_ioflags &= ~BIO_ORDERED;
if ((bp->b_flags & B_DELWRI) == 0 && (bp->b_xflags & BX_VNDIRTY))
panic("brelse: not dirty");
splx(s);
@@ -1356,7 +1355,6 @@ bqrelse(struct buf * bp)
/* unlock */
BUF_UNLOCK(bp);
bp->b_flags &= ~(B_ASYNC | B_NOCACHE | B_AGE | B_RELBUF);
- bp->b_ioflags &= ~BIO_ORDERED;
if ((bp->b_flags & B_DELWRI) == 0 && (bp->b_xflags & BX_VNDIRTY))
panic("bqrelse: not dirty");
splx(s);
OpenPOWER on IntegriCloud