summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/union
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1998-05-06 05:29:41 +0000
committermsmith <msmith@FreeBSD.org>1998-05-06 05:29:41 +0000
commitc645da3999c0063d872dc79df900019260ab94ee (patch)
treeb0a566a98cecb4b302b164374e384bef81e6c3e0 /sys/miscfs/union
parent9fcbed6a43dfce2fa8db10c333549f75ccc532f0 (diff)
downloadFreeBSD-src-c645da3999c0063d872dc79df900019260ab94ee.zip
FreeBSD-src-c645da3999c0063d872dc79df900019260ab94ee.tar.gz
As described by the submitter:
Reverse the VFS_VRELE patch. Reference counting of vnodes does not need to be done per-fs. I noticed this while fixing vfs layering violations. Doing reference counting in generic code is also the preference cited by John Heidemann in recent discussions with him. The implementation of alternative vnode management per-fs is still a valid requirement for some filesystems but will be revisited sometime later, most likely using a different framework. Submitted by: Michael Hancock <michaelh@cet.co.jp>
Diffstat (limited to 'sys/miscfs/union')
-rw-r--r--sys/miscfs/union/union_vfsops.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/sys/miscfs/union/union_vfsops.c b/sys/miscfs/union/union_vfsops.c
index 2f90d05..9f0d8ca 100644
--- a/sys/miscfs/union/union_vfsops.c
+++ b/sys/miscfs/union/union_vfsops.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* @(#)union_vfsops.c 8.20 (Berkeley) 5/20/95
- * $Id: union_vfsops.c,v 1.27 1998/03/01 22:46:25 msmith Exp $
+ * $Id: union_vfsops.c,v 1.28 1998/04/17 22:36:56 des Exp $
*/
/*
@@ -74,7 +74,6 @@ static int union_unmount __P((struct mount *mp, int mntflags,
struct proc *p));
extern int union_vget __P((struct mount *mp, ino_t ino,
struct vnode **vpp));
-static int union_vrele __P((struct mount *mp, struct vnode *vp));
extern int union_vptofh __P((struct vnode *vp, struct fid *fhp));
/*
@@ -524,21 +523,6 @@ union_statfs(mp, sbp, p)
}
/*
- * Complement to all vpp returning ops.
- * XXX - initially only to get rid of WILLRELE.
- * XXX - may change when modification of vops start.
- */
-/* ARGSUSED */
-static int
-union_vrele(mp, vp)
- struct mount *mp;
- struct vnode *vp;
-{
- vrele(vp);
- return (0);
-}
-
-/*
* XXX - Assumes no data cached at union layer.
*/
#define union_sync ((int (*) __P((struct mount *, int, struct ucred *, \
@@ -563,7 +547,6 @@ static struct vfsops union_vfsops = {
union_statfs,
union_sync,
union_vget,
- union_vrele,
union_fhtovp,
union_vptofh,
union_init,
OpenPOWER on IntegriCloud