summaryrefslogtreecommitdiffstats
path: root/sys/isofs
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1998-03-01 22:46:53 +0000
committermsmith <msmith@FreeBSD.org>1998-03-01 22:46:53 +0000
commit950d32131bcda63f4d849362c64123e28600ae2c (patch)
tree20dcb6f46f936b41e0a16f253d5a11772bfbfd92 /sys/isofs
parent611da89e2cf7f2301c19b2e6115e9668d92f3d69 (diff)
downloadFreeBSD-src-950d32131bcda63f4d849362c64123e28600ae2c.zip
FreeBSD-src-950d32131bcda63f4d849362c64123e28600ae2c.tar.gz
The intent is to get rid of WILLRELE in vnode_if.src by making
a complement to all ops that return a vpp, VFS_VRELE. This is initially only for file systems that implement the following ops that do a WILLRELE: vop_create, vop_whiteout, vop_mknod, vop_remove, vop_link, vop_rename, vop_mkdir, vop_rmdir, vop_symlink This is initial DNA that doesn't do anything yet. VFS_VRELE is implemented but not called. A default vfs_vrele was created for fs implementations that use the standard vnode management routines. VFS_VRELE implementations were made for the following file systems: Standard (vfs_vrele) ffs mfs nfs msdosfs devfs ext2fs Custom union umapfs Just EOPNOTSUPP fdesc procfs kernfs portal cd9660 These implementations may change as VOP changes are implemented. In the next phase, in the vop implementations calls to vrele and the vrele part of vput will be moved to the top layer vfs_vnops and made visible to all layers. vput will be replaced by unlock in these cases. Unlocking will still be done in the per fs layer but the refcount decrement will be triggered at the top because it doesn't hurt to hold a vnode reference a little longer. This will have minimal impact on the structure of the existing code. This will only be done for vnode arguments that are released by the various fs vop implementations. Wider use of VFS_VRELE will likely require restructuring of the code. Reviewed by: phk, dyson, terry et. al. Submitted by: Michael Hancock <michaelh@cet.co.jp>
Diffstat (limited to 'sys/isofs')
-rw-r--r--sys/isofs/cd9660/cd9660_vfsops.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c
index 583d66c..a9218c3 100644
--- a/sys/isofs/cd9660/cd9660_vfsops.c
+++ b/sys/isofs/cd9660/cd9660_vfsops.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)cd9660_vfsops.c 8.18 (Berkeley) 5/22/95
- * $Id: cd9660_vfsops.c,v 1.32 1997/11/07 08:52:51 phk Exp $
+ * $Id: cd9660_vfsops.c,v 1.33 1997/12/21 21:40:02 joerg Exp $
*/
#include <sys/param.h>
@@ -73,6 +73,7 @@ static int cd9660_statfs __P((struct mount *, struct statfs *, struct proc *));
static int cd9660_sync __P((struct mount *, int, struct ucred *,
struct proc *));
static int cd9660_vget __P((struct mount *, ino_t, struct vnode **));
+static int cd9660_vrele __P((struct mount *, struct vnode *));
static int cd9660_fhtovp __P((struct mount *, struct fid *, struct sockaddr *,
struct vnode **, int *, struct ucred **));
static int cd9660_vptofh __P((struct vnode *, struct fid *));
@@ -86,6 +87,7 @@ static struct vfsops cd9660_vfsops = {
cd9660_statfs,
cd9660_sync,
cd9660_vget,
+ cd9660_vrele,
cd9660_fhtovp,
cd9660_vptofh,
cd9660_init
@@ -658,6 +660,19 @@ cd9660_vget(mp, ino, vpp)
(struct iso_directory_record *)0));
}
+/*
+ * Complement to all vpp returning ops.
+ * XXX - initially only to get rid of WILLRELE.
+ */
+/* ARGSUSED */
+static int
+cd9660_vrele(mp, vp)
+ struct mount *mp;
+ struct vnode *vp;
+{
+ return (EOPNOTSUPP);
+}
+
int
cd9660_vget_internal(mp, ino, vpp, relocated, isodir)
struct mount *mp;
OpenPOWER on IntegriCloud