SCCS-vsn: sys/kern/vfs_vnops.c 7.10
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * @(#)vfs_vnops.c 7.9 (Berkeley) %G%
+ * @(#)vfs_vnops.c 7.10 (Berkeley) %G%
#include "socketvar.h"
#include "mount.h"
#include "vnode.h"
#include "socketvar.h"
#include "mount.h"
#include "vnode.h"
-#include "../ufs/inode.h"
#include "../ufs/fs.h"
#include "../ufs/quota.h"
#include "ioctl.h"
#include "../ufs/fs.h"
#include "../ufs/quota.h"
#include "ioctl.h"
mode = vap->va_mode;
switch (vp->v_type) {
case VREG:
mode = vap->va_mode;
switch (vp->v_type) {
case VREG:
break;
default:
return (EBADF);
break;
default:
return (EBADF);
struct vnode **vpp;
{
register struct mount *mp;
struct vnode **vpp;
{
register struct mount *mp;
if ((mp = getvfs(&fhp->fh_fsid)) == NULL)
return (ESTALE);
if ((mp = getvfs(&fhp->fh_fsid)) == NULL)
return (ESTALE);
-/*
- * Vnode reference, just increment the count
- */
-void vref(vp)
- struct vnode *vp;
-{
-
- vp->v_count++;
-}
-
-/*
- * Vnode release, just decrement the count and call VOP_INACTIVE()
- */
-void vrele(vp)
- register struct vnode *vp;
-{
-
- if (vp == NULL)
- return;
- vp->v_count--;
- if (vp->v_count < 0)
- printf("inode %d, bad ref count %d\n",
- VTOI(vp)->i_number, vp->v_count);
- if (vp->v_count == 0)
- VOP_INACTIVE(vp);
-}
-
-/*
- * vput(), just unlock and vrele()
- */
-vput(vp)
- register struct vnode *vp;
-{
- VOP_UNLOCK(vp);
- vrele(vp);
-}
-