Another FNONBLOCK -> O_NONBLOCK.

Don't unconditionally set IO_UNIT to device drivers in write:  nobody
checks it, and since it was always set it did not carry information anyway.
This commit is contained in:
Poul-Henning Kamp 2004-12-13 07:41:19 +00:00
parent ab9caf9d67
commit 1dc4727ea3

View File

@ -1345,8 +1345,8 @@ devfs_write_f(struct file *fp, struct uio *uio, struct ucred *cred, int flags, s
return (error);
KASSERT(uio->uio_td == td, ("uio_td %p is not td %p", uio->uio_td, td));
vp = fp->f_vnode;
ioflag = IO_UNIT;
if (fp->f_flag & FNONBLOCK)
ioflag = 0;
if (fp->f_flag & O_NONBLOCK)
ioflag |= IO_NDELAY;
if (fp->f_flag & O_DIRECT)
ioflag |= IO_DIRECT;