summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/umapfs
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/umapfs
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/umapfs')
-rw-r--r--sys/miscfs/umapfs/umap_vfsops.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/miscfs/umapfs/umap_vfsops.c b/sys/miscfs/umapfs/umap_vfsops.c
index 8c1b705..31d6742 100644
--- a/sys/miscfs/umapfs/umap_vfsops.c
+++ b/sys/miscfs/umapfs/umap_vfsops.c
@@ -35,7 +35,7 @@
*
* @(#)umap_vfsops.c 8.8 (Berkeley) 5/14/95
*
- * $Id: umap_vfsops.c,v 1.20 1998/02/07 01:34:32 kato Exp $
+ * $Id: umap_vfsops.c,v 1.21 1998/03/01 22:46:24 msmith Exp $
*/
/*
@@ -72,7 +72,6 @@ static int umapfs_unmount __P((struct mount *mp, int mntflags,
struct proc *p));
static int umapfs_vget __P((struct mount *mp, ino_t ino,
struct vnode **vpp));
-static int umapfs_vrele __P((struct mount *mp, struct vnode *vp));
static int umapfs_vptofh __P((struct vnode *vp, struct fid *fhp));
/*
@@ -394,20 +393,6 @@ umapfs_vget(mp, ino, vpp)
return (VFS_VGET(MOUNTTOUMAPMOUNT(mp)->umapm_vfs, ino, vpp));
}
-/*
- * Complement to all vpp returning ops.
- * XXX - initially only to get rid of WILLRELE.
- */
-/* ARGSUSED */
-static int
-umapfs_vrele(mp, vp)
- struct mount *mp;
- struct vnode *vp;
-{
- vrele(vp);
- return (0);
-}
-
static int
umapfs_fhtovp(mp, fidp, nam, vpp, exflagsp, credanonp)
struct mount *mp;
@@ -438,7 +423,6 @@ static struct vfsops umap_vfsops = {
umapfs_statfs,
umapfs_sync,
umapfs_vget,
- umapfs_vrele,
umapfs_fhtovp,
umapfs_vptofh,
umapfs_init,
OpenPOWER on IntegriCloud