svn commit: r296470 - head/sys/dev/filemon
Bryan Drewery
bdrewery at FreeBSD.org
Mon Mar 7 21:10:21 UTC 2016
Author: bdrewery
Date: Mon Mar 7 21:10:19 2016
New Revision: 296470
URL: https://svnweb.freebsd.org/changeset/base/296470
Log:
Only call bwillwrite() for logging to vnodes, as other fo_write() calls do.
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
Modified:
head/sys/dev/filemon/filemon_wrapper.c
Modified: head/sys/dev/filemon/filemon_wrapper.c
==============================================================================
--- head/sys/dev/filemon/filemon_wrapper.c Mon Mar 7 19:59:08 2016 (r296469)
+++ head/sys/dev/filemon/filemon_wrapper.c Mon Mar 7 21:10:19 2016 (r296470)
@@ -59,7 +59,8 @@ filemon_output(struct filemon *filemon,
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);
}
More information about the svn-src-all
mailing list