summaryrefslogtreecommitdiff
path: root/sys/kern/vnode_if.src
diff options
context:
space:
mode:
authorpooka <pooka@NetBSD.org>2007-07-22 21:26:53 +0000
committerpooka <pooka@NetBSD.org>2007-07-22 21:26:53 +0000
commitf5ba107ccd4e7335e64812a00942a4fcc223b3ff (patch)
tree35ecf105273abee3fb676114118198ef5c555bd5 /sys/kern/vnode_if.src
parent17b8c7717a8569d0ec183e66cf2f25e29714175a (diff)
Introduce WILLMAKE for vnode operations which create a new vnode.
Insert a KASSERT along the return path of such operations to check that the operation set the vnode size.
Diffstat (limited to 'sys/kern/vnode_if.src')
-rw-r--r--sys/kern/vnode_if.src12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/vnode_if.src b/sys/kern/vnode_if.src
index fa076dde5e7..f0f4860d2c9 100644
--- a/sys/kern/vnode_if.src
+++ b/sys/kern/vnode_if.src
@@ -1,4 +1,4 @@
-# $NetBSD: vnode_if.src,v 1.52 2007/04/09 14:58:28 gdt Exp $
+# $NetBSD: vnode_if.src,v 1.53 2007/07/22 21:26:53 pooka Exp $
#
# Copyright (c) 1992, 1993
# The Regents of the University of California. All rights reserved.
@@ -82,7 +82,7 @@
#
vop_lookup {
IN struct vnode *dvp;
- INOUT struct vnode **vpp;
+ INOUT WILLMAKE struct vnode **vpp;
IN struct componentname *cnp;
};
@@ -94,7 +94,7 @@ vop_lookup {
#
vop_create {
IN LOCKED=YES WILLPUT struct vnode *dvp;
- OUT struct vnode **vpp;
+ OUT WILLMAKE struct vnode **vpp;
IN struct componentname *cnp;
IN struct vattr *vap;
};
@@ -107,7 +107,7 @@ vop_create {
#
vop_mknod {
IN LOCKED=YES WILLPUT struct vnode *dvp;
- OUT struct vnode **vpp;
+ OUT WILLMAKE struct vnode **vpp;
IN struct componentname *cnp;
IN struct vattr *vap;
};
@@ -316,7 +316,7 @@ vop_rename {
#
vop_mkdir {
IN LOCKED=YES WILLPUT struct vnode *dvp;
- OUT struct vnode **vpp;
+ OUT WILLMAKE struct vnode **vpp;
IN struct componentname *cnp;
IN struct vattr *vap;
};
@@ -341,7 +341,7 @@ vop_rmdir {
#
vop_symlink {
IN LOCKED=YES WILLPUT struct vnode *dvp;
- OUT struct vnode **vpp;
+ OUT WILLMAKE struct vnode **vpp;
IN struct componentname *cnp;
IN struct vattr *vap;
IN char *target;