* Copyright (c) 1982, 1986, 1989 Regents of the University of California.
* %sccs.include.redist.c%
* @(#)lfs_bio.c 5.1 (Berkeley) %G%
* LFS version of bawrite, bdwrite, bwrite. Set the delayed write flag
* and use reassignbuf to move the buffer from the clean list to the
* dirty one. Then unlock the buffer.
curproc
->p_stats
->p_ru
.ru_oublock
++; /* XXX: no one paid yet */
bp
->b_flags
&= ~(B_READ
| B_DONE
| B_ERROR
| B_DELWRI
);
reassignbuf(bp
, bp
->b_vp
); /* XXX: do this inline */