mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-09 16:01:19 +01:00
Replace bowrite() with BUF_WRITE in ufs.
Remove bowrite(), it is now unused. This is the first step in getting entirely rid of BIO_ORDERED which is a generally accepted evil thing. Approved by: mckusick
This commit is contained in:
parent
4d768fea35
commit
986066d065
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91060
sys
@ -989,22 +989,6 @@ bawrite(struct buf * bp)
|
||||
(void) BUF_WRITE(bp);
|
||||
}
|
||||
|
||||
/*
|
||||
* bowrite:
|
||||
*
|
||||
* Ordered write. Start output on a buffer, and flag it so that the
|
||||
* device will write it in the order it was queued. The buffer is
|
||||
* released when the output completes. bwrite() ( or the VOP routine
|
||||
* anyway ) is responsible for handling B_INVAL buffers.
|
||||
*/
|
||||
int
|
||||
bowrite(struct buf * bp)
|
||||
{
|
||||
bp->b_ioflags |= BIO_ORDERED;
|
||||
bp->b_flags |= B_ASYNC;
|
||||
return (BUF_WRITE(bp));
|
||||
}
|
||||
|
||||
/*
|
||||
* bwillwrite:
|
||||
*
|
||||
|
@ -487,7 +487,6 @@ void bdwrite __P((struct buf *));
|
||||
void bawrite __P((struct buf *));
|
||||
void bdirty __P((struct buf *));
|
||||
void bundirty __P((struct buf *));
|
||||
int bowrite __P((struct buf *));
|
||||
void brelse __P((struct buf *));
|
||||
void bqrelse __P((struct buf *));
|
||||
int vfs_bio_awrite __P((struct buf *));
|
||||
|
@ -953,7 +953,7 @@ ufs_direnter(dvp, tvp, dirp, cnp, newdirbp)
|
||||
bdwrite(bp);
|
||||
error = 0;
|
||||
} else {
|
||||
error = bowrite(bp);
|
||||
error = BUF_WRITE(bp);
|
||||
}
|
||||
}
|
||||
dp->i_flag |= IN_CHANGE | IN_UPDATE;
|
||||
@ -1070,7 +1070,7 @@ out:
|
||||
bdwrite(bp);
|
||||
error = 0;
|
||||
} else
|
||||
error = bowrite(bp);
|
||||
error = BUF_WRITE(bp);
|
||||
}
|
||||
dp->i_flag |= IN_CHANGE | IN_UPDATE;
|
||||
/*
|
||||
@ -1120,7 +1120,7 @@ ufs_dirrewrite(dp, oip, newinum, newtype, isrmdir)
|
||||
bdwrite(bp);
|
||||
error = 0;
|
||||
} else {
|
||||
error = bowrite(bp);
|
||||
error = BUF_WRITE(bp);
|
||||
}
|
||||
}
|
||||
dp->i_flag |= IN_CHANGE | IN_UPDATE;
|
||||
|
Loading…
Reference in New Issue
Block a user