diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-03-21 17:23:15 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-03-21 17:23:15 +0000 |
commit | 907f4a5d683e8767742bbddfc156194f3a3d2f53 (patch) | |
tree | d038adf524143cfac2e9a668cd0e49d1e5b5b33b | |
parent | 5cb79026beff0465c910ca32038a4980b717cff9 (diff) |
Regen with the right vnode_if.sh
-rw-r--r-- | sys/kern/vnode_if.c | 137 | ||||
-rw-r--r-- | sys/sys/vnode_if.h | 2 |
2 files changed, 83 insertions, 56 deletions
diff --git a/sys/kern/vnode_if.c b/sys/kern/vnode_if.c index a5b45306778..d6ada387daa 100644 --- a/sys/kern/vnode_if.c +++ b/sys/kern/vnode_if.c @@ -5,7 +5,7 @@ * Created from the file: * OpenBSD: vnode_if.src,v 1.10 2001/03/01 20:54:34 provos Exp * by the script: - * OpenBSD: vnode_if.sh,v 1.6 1999/03/03 20:58:27 deraadt Exp + * OpenBSD: vnode_if.sh,v 1.8 2001/02/26 17:34:18 art Exp */ /* @@ -137,8 +137,9 @@ int VOP_CREATE(dvp, vpp, cnp, vap) struct vop_create_args a; a.a_desc = VDESC(vop_create); a.a_dvp = dvp; -#ifdef DIAGNOSTIC - if ((dvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(dvp)) panic("vop_create: dvp"); +#ifdef LOCKDEBUG + if ((dvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(dvp)) + panic("vop_create: dvp"); #endif a.a_vpp = vpp; a.a_cnp = cnp; @@ -171,8 +172,9 @@ int VOP_MKNOD(dvp, vpp, cnp, vap) struct vop_mknod_args a; a.a_desc = VDESC(vop_mknod); a.a_dvp = dvp; -#ifdef DIAGNOSTIC - if ((dvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(dvp)) panic("vop_mknod: dvp"); +#ifdef LOCKDEBUG + if ((dvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(dvp)) + panic("vop_mknod: dvp"); #endif a.a_vpp = vpp; a.a_cnp = cnp; @@ -267,8 +269,9 @@ int VOP_ACCESS(vp, mode, cred, p) struct vop_access_args a; a.a_desc = VDESC(vop_access); a.a_vp = vp; -#ifdef DIAGNOSTIC - if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) panic("vop_access: vp"); +#ifdef LOCKDEBUG + if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) + panic("vop_access: vp"); #endif a.a_mode = mode; a.a_cred = cred; @@ -332,8 +335,9 @@ int VOP_SETATTR(vp, vap, cred, p) struct vop_setattr_args a; a.a_desc = VDESC(vop_setattr); a.a_vp = vp; -#ifdef DIAGNOSTIC - if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) panic("vop_setattr: vp"); +#ifdef LOCKDEBUG + if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) + panic("vop_setattr: vp"); #endif a.a_vap = vap; a.a_cred = cred; @@ -366,8 +370,9 @@ int VOP_READ(vp, uio, ioflag, cred) struct vop_read_args a; a.a_desc = VDESC(vop_read); a.a_vp = vp; -#ifdef DIAGNOSTIC - if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) panic("vop_read: vp"); +#ifdef LOCKDEBUG + if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) + panic("vop_read: vp"); #endif a.a_uio = uio; a.a_ioflag = ioflag; @@ -400,8 +405,9 @@ int VOP_WRITE(vp, uio, ioflag, cred) struct vop_write_args a; a.a_desc = VDESC(vop_write); a.a_vp = vp; -#ifdef DIAGNOSTIC - if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) panic("vop_write: vp"); +#ifdef LOCKDEBUG + if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) + panic("vop_write: vp"); #endif a.a_uio = uio; a.a_ioflag = ioflag; @@ -618,8 +624,9 @@ int VOP_FSYNC(vp, cred, waitfor, p) struct vop_fsync_args a; a.a_desc = VDESC(vop_fsync); a.a_vp = vp; -#ifdef DIAGNOSTIC - if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) panic("vop_fsync: vp"); +#ifdef LOCKDEBUG + if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) + panic("vop_fsync: vp"); #endif a.a_cred = cred; a.a_waitfor = waitfor; @@ -683,12 +690,14 @@ int VOP_REMOVE(dvp, vp, cnp) struct vop_remove_args a; a.a_desc = VDESC(vop_remove); a.a_dvp = dvp; -#ifdef DIAGNOSTIC - if ((dvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(dvp)) panic("vop_remove: dvp"); +#ifdef LOCKDEBUG + if ((dvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(dvp)) + panic("vop_remove: dvp"); #endif a.a_vp = vp; -#ifdef DIAGNOSTIC - if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) panic("vop_remove: vp"); +#ifdef LOCKDEBUG + if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) + panic("vop_remove: vp"); #endif a.a_cnp = cnp; return (VCALL(dvp, VOFFSET(vop_remove), &a)); @@ -719,8 +728,9 @@ int VOP_LINK(dvp, vp, cnp) struct vop_link_args a; a.a_desc = VDESC(vop_link); a.a_dvp = dvp; -#ifdef DIAGNOSTIC - if ((dvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(dvp)) panic("vop_link: dvp"); +#ifdef LOCKDEBUG + if ((dvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(dvp)) + panic("vop_link: dvp"); #endif a.a_vp = vp; a.a_cnp = cnp; @@ -760,8 +770,9 @@ int VOP_RENAME(fdvp, fvp, fcnp, tdvp, tvp, tcnp) a.a_fvp = fvp; a.a_fcnp = fcnp; a.a_tdvp = tdvp; -#ifdef DIAGNOSTIC - if ((tdvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(tdvp)) panic("vop_rename: tdvp"); +#ifdef LOCKDEBUG + if ((tdvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(tdvp)) + panic("vop_rename: tdvp"); #endif a.a_tvp = tvp; a.a_tcnp = tcnp; @@ -793,8 +804,9 @@ int VOP_MKDIR(dvp, vpp, cnp, vap) struct vop_mkdir_args a; a.a_desc = VDESC(vop_mkdir); a.a_dvp = dvp; -#ifdef DIAGNOSTIC - if ((dvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(dvp)) panic("vop_mkdir: dvp"); +#ifdef LOCKDEBUG + if ((dvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(dvp)) + panic("vop_mkdir: dvp"); #endif a.a_vpp = vpp; a.a_cnp = cnp; @@ -827,12 +839,14 @@ int VOP_RMDIR(dvp, vp, cnp) struct vop_rmdir_args a; a.a_desc = VDESC(vop_rmdir); a.a_dvp = dvp; -#ifdef DIAGNOSTIC - if ((dvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(dvp)) panic("vop_rmdir: dvp"); +#ifdef LOCKDEBUG + if ((dvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(dvp)) + panic("vop_rmdir: dvp"); #endif a.a_vp = vp; -#ifdef DIAGNOSTIC - if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) panic("vop_rmdir: vp"); +#ifdef LOCKDEBUG + if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) + panic("vop_rmdir: vp"); #endif a.a_cnp = cnp; return (VCALL(dvp, VOFFSET(vop_rmdir), &a)); @@ -864,8 +878,9 @@ int VOP_SYMLINK(dvp, vpp, cnp, vap, target) struct vop_symlink_args a; a.a_desc = VDESC(vop_symlink); a.a_dvp = dvp; -#ifdef DIAGNOSTIC - if ((dvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(dvp)) panic("vop_symlink: dvp"); +#ifdef LOCKDEBUG + if ((dvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(dvp)) + panic("vop_symlink: dvp"); #endif a.a_vpp = vpp; a.a_cnp = cnp; @@ -901,8 +916,9 @@ int VOP_READDIR(vp, uio, cred, eofflag, ncookies, cookies) struct vop_readdir_args a; a.a_desc = VDESC(vop_readdir); a.a_vp = vp; -#ifdef DIAGNOSTIC - if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) panic("vop_readdir: vp"); +#ifdef LOCKDEBUG + if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) + panic("vop_readdir: vp"); #endif a.a_uio = uio; a.a_cred = cred; @@ -936,8 +952,9 @@ int VOP_READLINK(vp, uio, cred) struct vop_readlink_args a; a.a_desc = VDESC(vop_readlink); a.a_vp = vp; -#ifdef DIAGNOSTIC - if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) panic("vop_readlink: vp"); +#ifdef LOCKDEBUG + if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) + panic("vop_readlink: vp"); #endif a.a_uio = uio; a.a_cred = cred; @@ -994,8 +1011,9 @@ int VOP_INACTIVE(vp, p) struct vop_inactive_args a; a.a_desc = VDESC(vop_inactive); a.a_vp = vp; -#ifdef DIAGNOSTIC - if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) panic("vop_inactive: vp"); +#ifdef LOCKDEBUG + if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) + panic("vop_inactive: vp"); #endif a.a_p = p; return (VCALL(vp, VOFFSET(vop_inactive), &a)); @@ -1112,8 +1130,9 @@ int VOP_BMAP(vp, bn, vpp, bnp, runp) struct vop_bmap_args a; a.a_desc = VDESC(vop_bmap); a.a_vp = vp; -#ifdef DIAGNOSTIC - if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) panic("vop_bmap: vp"); +#ifdef LOCKDEBUG + if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) + panic("vop_bmap: vp"); #endif a.a_bn = bn; a.a_vpp = vpp; @@ -1234,8 +1253,9 @@ int VOP_BLKATOFF(vp, offset, res, bpp) struct vop_blkatoff_args a; a.a_desc = VDESC(vop_blkatoff); a.a_vp = vp; -#ifdef DIAGNOSTIC - if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) panic("vop_blkatoff: vp"); +#ifdef LOCKDEBUG + if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) + panic("vop_blkatoff: vp"); #endif a.a_offset = offset; a.a_res = res; @@ -1268,8 +1288,9 @@ int VOP_VALLOC(pvp, mode, cred, vpp) struct vop_valloc_args a; a.a_desc = VDESC(vop_valloc); a.a_pvp = pvp; -#ifdef DIAGNOSTIC - if ((pvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(pvp)) panic("vop_valloc: pvp"); +#ifdef LOCKDEBUG + if ((pvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(pvp)) + panic("vop_valloc: pvp"); #endif a.a_mode = mode; a.a_cred = cred; @@ -1304,8 +1325,9 @@ int VOP_BALLOC(vp, startoffset, size, cred, flags, bpp) struct vop_balloc_args a; a.a_desc = VDESC(vop_balloc); a.a_vp = vp; -#ifdef DIAGNOSTIC - if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) panic("vop_balloc: vp"); +#ifdef LOCKDEBUG + if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) + panic("vop_balloc: vp"); #endif a.a_startoffset = startoffset; a.a_size = size; @@ -1338,8 +1360,9 @@ int VOP_REALLOCBLKS(vp, buflist) struct vop_reallocblks_args a; a.a_desc = VDESC(vop_reallocblks); a.a_vp = vp; -#ifdef DIAGNOSTIC - if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) panic("vop_reallocblks: vp"); +#ifdef LOCKDEBUG + if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) + panic("vop_reallocblks: vp"); #endif a.a_buflist = buflist; return (VCALL(vp, VOFFSET(vop_reallocblks), &a)); @@ -1369,8 +1392,9 @@ int VOP_VFREE(pvp, ino, mode) struct vop_vfree_args a; a.a_desc = VDESC(vop_vfree); a.a_pvp = pvp; -#ifdef DIAGNOSTIC - if ((pvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(pvp)) panic("vop_vfree: pvp"); +#ifdef LOCKDEBUG + if ((pvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(pvp)) + panic("vop_vfree: pvp"); #endif a.a_ino = ino; a.a_mode = mode; @@ -1403,8 +1427,9 @@ int VOP_TRUNCATE(vp, length, flags, cred, p) struct vop_truncate_args a; a.a_desc = VDESC(vop_truncate); a.a_vp = vp; -#ifdef DIAGNOSTIC - if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) panic("vop_truncate: vp"); +#ifdef LOCKDEBUG + if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) + panic("vop_truncate: vp"); #endif a.a_length = length; a.a_flags = flags; @@ -1438,8 +1463,9 @@ int VOP_UPDATE(vp, access, modify, waitfor) struct vop_update_args a; a.a_desc = VDESC(vop_update); a.a_vp = vp; -#ifdef DIAGNOSTIC - if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) panic("vop_update: vp"); +#ifdef LOCKDEBUG + if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) + panic("vop_update: vp"); #endif a.a_access = access; a.a_modify = modify; @@ -1471,8 +1497,9 @@ int VOP_WHITEOUT(dvp, cnp, flags) struct vop_whiteout_args a; a.a_desc = VDESC(vop_whiteout); a.a_dvp = dvp; -#ifdef DIAGNOSTIC - if ((dvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(dvp)) panic("vop_whiteout: dvp"); +#ifdef LOCKDEBUG + if ((dvp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(dvp)) + panic("vop_whiteout: dvp"); #endif a.a_cnp = cnp; a.a_flags = flags; diff --git a/sys/sys/vnode_if.h b/sys/sys/vnode_if.h index 93a29256749..9dfcb5c418a 100644 --- a/sys/sys/vnode_if.h +++ b/sys/sys/vnode_if.h @@ -5,7 +5,7 @@ * Created from the file: * OpenBSD: vnode_if.src,v 1.10 2001/03/01 20:54:34 provos Exp * by the script: - * OpenBSD: vnode_if.sh,v 1.6 1999/03/03 20:58:27 deraadt Exp + * OpenBSD: vnode_if.sh,v 1.8 2001/02/26 17:34:18 art Exp */ /* |