Just like dofilewrite(), call bwillwrite before fo_write.

This commit is contained in:
David Xu 2006-01-27 08:02:25 +00:00
parent 0fbdbd5068
commit 6d53aa6297

View File

@ -763,6 +763,8 @@ aio_process(struct aiocblist *aiocbe)
auio.uio_rw = UIO_READ;
error = fo_read(fp, &auio, fp->f_cred, FOF_OFFSET, td);
} else {
if (fp->f_type == DTYPE_VNODE)
bwillwrite();
auio.uio_rw = UIO_WRITE;
error = fo_write(fp, &auio, fp->f_cred, FOF_OFFSET, td);
}