* Copyright (c) 1982, 1986, 1989 Regents of the University of California.
* %sccs.include.redist.c%
* @(#)lfs_bio.c 5.2 (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.
Not included as
this gets called from lots of places where the
current proc structure is probably wrong
. Ignore
for now
.
curproc
->p_stats
->p_ru
.ru_oublock
++; /* XXX: no one paid yet */
bp
->b_flags
&= ~(B_READ
| B_DONE
| B_ERROR
);
bp
->b_flags
|= B_WRITE
| B_DELWRI
;
reassignbuf(bp
, bp
->b_vp
); /* XXX: do this inline? */