]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
The intent is to get rid of WILLRELE in vnode_if.src by making
authorMike Smith <msmith@FreeBSD.org>
Sun, 1 Mar 1998 22:46:53 +0000 (22:46 +0000)
committerMike Smith <msmith@FreeBSD.org>
Sun, 1 Mar 1998 22:46:53 +0000 (22:46 +0000)
commit34bdbbd0de4e7ac29ca2f107fa68bc704a19521b
tree0955e71756fb34bf7bac114488dd78275a29271d
parent53b86afb7df27ea596e0e4c56e388d9fa821598f
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>
27 files changed:
sys/fs/cd9660/cd9660_vfsops.c
sys/fs/fdescfs/fdesc_vfsops.c
sys/fs/msdosfs/msdosfs_vfsops.c
sys/fs/nullfs/null_vfsops.c
sys/fs/portalfs/portal_vfsops.c
sys/fs/procfs/procfs_vfsops.c
sys/fs/umapfs/umap_vfsops.c
sys/fs/unionfs/union_vfsops.c
sys/gnu/ext2fs/ext2_vfsops.c
sys/gnu/fs/ext2fs/ext2_vfsops.c
sys/isofs/cd9660/cd9660_vfsops.c
sys/kern/vfs_default.c
sys/miscfs/devfs/devfs_vfsops.c
sys/miscfs/fdesc/fdesc_vfsops.c
sys/miscfs/kernfs/kernfs.h
sys/miscfs/kernfs/kernfs_vfsops.c
sys/miscfs/nullfs/null_vfsops.c
sys/miscfs/portal/portal_vfsops.c
sys/miscfs/procfs/procfs_vfsops.c
sys/miscfs/umapfs/umap_vfsops.c
sys/miscfs/union/union_vfsops.c
sys/msdosfs/msdosfs_vfsops.c
sys/nfs/nfs_vfsops.c
sys/nfsclient/nfs_vfsops.c
sys/sys/mount.h
sys/ufs/ffs/ffs_vfsops.c
sys/ufs/mfs/mfs_vfsops.c