aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/vnode.h
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-08-27 06:09:56 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-08-27 06:09:56 +0000
commit0f7289022b37be08936b114c0519fe6f3ac43839 (patch)
treea8cac4344907af5683b1c88f1f7e46973765b594 /sys/sys/vnode.h
parent9d170964e4308e9441048ddf2d4219a8c7a2e54a (diff)
downloadsrc-0f7289022b37be08936b114c0519fe6f3ac43839.tar.gz
src-0f7289022b37be08936b114c0519fe6f3ac43839.zip
If a file has been completely unlinked, stop automatically syncing the
file. ffs will discard any pending dirty pages when it is closed, so we may as well not waste time trying to clean them. This doesn't stop other things from writing it out, eg: pageout, fsync(2) etc.
Notes
Notes: svn path=/head/; revision=82395
Diffstat (limited to 'sys/sys/vnode.h')
-rw-r--r--sys/sys/vnode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index f00bc03f6918..9ee79d1c62e2 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -163,7 +163,7 @@ struct vnode {
#define VXLOCK 0x00100 /* vnode is locked to change underlying type */
#define VXWANT 0x00200 /* process is waiting for vnode */
#define VBWAIT 0x00400 /* waiting for output to complete */
-/* open for business 0x00800 */
+#define VNOSYNC 0x01000 /* unlinked, stop syncing */
/* open for business 0x01000 */
#define VOBJBUF 0x02000 /* Allocate buffers in VM object */
#define VCOPYONWRITE 0x04000 /* vnode is doing copy-on-write */