diff options
author | msmith <msmith@FreeBSD.org> | 1998-03-01 22:46:53 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1998-03-01 22:46:53 +0000 |
commit | 950d32131bcda63f4d849362c64123e28600ae2c (patch) | |
tree | 20dcb6f46f936b41e0a16f253d5a11772bfbfd92 /sys/miscfs/kernfs/kernfs.h | |
parent | 611da89e2cf7f2301c19b2e6115e9668d92f3d69 (diff) | |
download | FreeBSD-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/miscfs/kernfs/kernfs.h')
-rw-r--r-- | sys/miscfs/kernfs/kernfs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/miscfs/kernfs/kernfs.h b/sys/miscfs/kernfs/kernfs.h index 1488bc6..e13c299 100644 --- a/sys/miscfs/kernfs/kernfs.h +++ b/sys/miscfs/kernfs/kernfs.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)kernfs.h 8.6 (Berkeley) 3/29/95 - * $Id: kernfs.h,v 1.7 1997/08/16 19:15:14 wollman Exp $ + * $Id: kernfs.h,v 1.8 1997/09/07 05:25:58 bde Exp $ */ #define _PATH_KERNFS "/kern" /* Default mountpoint */ @@ -61,6 +61,8 @@ struct kernfs_node { size_t, struct proc *)))eopnotsupp) #define kernfs_vget ((int (*) __P((struct mount *, ino_t, struct vnode **))) \ eopnotsupp) +#define kernfs_vrele ((int (*) __P((struct mount *, struct vnode *))) \ + eopnotsupp) #define kernfs_vptofh ((int (*) __P((struct vnode *, struct fid *)))eopnotsupp) extern vop_t **kernfs_vnodeop_p; extern dev_t rrootdev; |