aboutsummaryrefslogtreecommitdiff
path: root/sys/miscfs/procfs
diff options
context:
space:
mode:
authorMike Smith <msmith@FreeBSD.org>1998-03-01 22:46:53 +0000
committerMike Smith <msmith@FreeBSD.org>1998-03-01 22:46:53 +0000
commit34bdbbd0de4e7ac29ca2f107fa68bc704a19521b (patch)
tree0955e71756fb34bf7bac114488dd78275a29271d /sys/miscfs/procfs
parent53b86afb7df27ea596e0e4c56e388d9fa821598f (diff)
downloadsrc-34bdbbd0de4e7ac29ca2f107fa68bc704a19521b.tar.gz
src-34bdbbd0de4e7ac29ca2f107fa68bc704a19521b.zip
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>
Notes
Notes: svn path=/head/; revision=33964
Diffstat (limited to 'sys/miscfs/procfs')
-rw-r--r--sys/miscfs/procfs/procfs_vfsops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/miscfs/procfs/procfs_vfsops.c b/sys/miscfs/procfs/procfs_vfsops.c
index 9379da674b3a..fddc277f6d86 100644
--- a/sys/miscfs/procfs/procfs_vfsops.c
+++ b/sys/miscfs/procfs/procfs_vfsops.c
@@ -36,7 +36,7 @@
*
* @(#)procfs_vfsops.c 8.7 (Berkeley) 5/10/95
*
- * $Id: procfs_vfsops.c,v 1.18 1997/12/08 01:06:24 sef Exp $
+ * $Id: procfs_vfsops.c,v 1.19 1997/12/30 08:46:44 bde Exp $
*/
/*
@@ -193,6 +193,8 @@ procfs_init(vfsp)
size_t, struct proc *)))eopnotsupp)
#define procfs_vget ((int (*) __P((struct mount *, ino_t, struct vnode **))) \
eopnotsupp)
+#define procfs_vrele ((int (*) __P((struct mount *, struct vnode *))) \
+ eopnotsupp)
#define procfs_vptofh ((int (*) __P((struct vnode *, struct fid *)))einval)
static struct vfsops procfs_vfsops = {
@@ -204,6 +206,7 @@ static struct vfsops procfs_vfsops = {
procfs_statfs,
procfs_sync,
procfs_vget,
+ procfs_vrele,
procfs_fhtovp,
procfs_vptofh,
procfs_init,