mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Only call bwillwrite() for logging to vnodes, as other fo_write() calls do.
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
f9c821083a
commit
8a81693ad5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=296470
|
@ -59,7 +59,8 @@ filemon_output(struct filemon *filemon, char *msg, size_t len)
|
|||
auio.uio_td = curthread;
|
||||
auio.uio_offset = (off_t) -1;
|
||||
|
||||
bwillwrite();
|
||||
if (filemon->fp->f_type == DTYPE_VNODE)
|
||||
bwillwrite();
|
||||
|
||||
fo_write(filemon->fp, &auio, curthread->td_ucred, 0, curthread);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue