diff options
author | msmith <msmith@FreeBSD.org> | 1998-05-06 05:29:41 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1998-05-06 05:29:41 +0000 |
commit | c645da3999c0063d872dc79df900019260ab94ee (patch) | |
tree | b0a566a98cecb4b302b164374e384bef81e6c3e0 /sys/fs/nullfs | |
parent | 9fcbed6a43dfce2fa8db10c333549f75ccc532f0 (diff) | |
download | FreeBSD-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/fs/nullfs')
-rw-r--r-- | sys/fs/nullfs/null_vfsops.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c index 961c0f9..67bad8a 100644 --- a/sys/fs/nullfs/null_vfsops.c +++ b/sys/fs/nullfs/null_vfsops.c @@ -36,7 +36,7 @@ * @(#)null_vfsops.c 8.2 (Berkeley) 1/21/94 * * @(#)lofs_vfsops.c 1.2 (Berkeley) 6/18/92 - * $Id: null_vfsops.c,v 1.24 1998/02/06 12:13:40 eivind Exp $ + * $Id: null_vfsops.c,v 1.25 1998/03/01 22:46:18 msmith Exp $ */ /* @@ -75,7 +75,6 @@ static int nullfs_unmount __P((struct mount *mp, int mntflags, struct proc *p)); static int nullfs_vget __P((struct mount *mp, ino_t ino, struct vnode **vpp)); -static int nullfs_vrele __P((struct mount *mp, struct vnode *vp)); static int nullfs_vptofh __P((struct vnode *vp, struct fid *fhp)); /* @@ -389,24 +388,6 @@ nullfs_vget(mp, ino, vpp) return VFS_VGET(MOUNTTONULLMOUNT(mp)->nullm_vfs, ino, vpp); } -/* - * Complement to all vpp returning ops. - * XXX - initially only to get rid of WILLRELE. - */ -/* ARGSUSED */ -static int -nullfs_vrele(mp, vp) - struct mount *mp; - struct vnode *vp; -{ - int error = 0; - - error = VFS_VRELE(MOUNTTONULLMOUNT(mp)->nullm_vfs, - NULLVPTOLOWERVP(vp)); - vrele(vp); - return (error); -} - static int nullfs_fhtovp(mp, fidp, nam, vpp, exflagsp, credanonp) struct mount *mp; @@ -438,7 +419,6 @@ static struct vfsops null_vfsops = { nullfs_statfs, nullfs_sync, nullfs_vget, - nullfs_vrele, nullfs_fhtovp, nullfs_vptofh, nullfs_init, |