Date: Sun, 1 Mar 1998 14:46:54 -0800 (PST) From: Michael Smith <msmith@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/gnu/ext2fs ext2_vfsops.c src/sys/isofs/cd9660 cd9660_vfsops.c src/sys/kern vfs_default.c src/sys/miscfs/devfs devfs_vfsops.c src/sys/miscfs/fdesc fdesc_vfsops.c src/sys/miscfs/kernfs kernfs.h kernfs_vfsops.c ... Message-ID: <199803012246.OAA03710@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
msmith 1998/03/01 14:46:54 PST
Modified files:
sys/gnu/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 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/sys mount.h
sys/ufs/ffs ffs_vfsops.c
sys/ufs/mfs mfs_vfsops.c
Log:
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>
Revision Changes Path
1.29 +1 -0 src/sys/gnu/ext2fs/ext2_vfsops.c
1.34 +16 -1 src/sys/isofs/cd9660/cd9660_vfsops.c
1.12 +23 -0 src/sys/kern/vfs_default.c
1.27 +2 -1 src/sys/miscfs/devfs/devfs_vfsops.c
1.14 +5 -1 src/sys/miscfs/fdesc/fdesc_vfsops.c
1.9 +3 -1 src/sys/miscfs/kernfs/kernfs.h
1.21 +2 -1 src/sys/miscfs/kernfs/kernfs_vfsops.c
1.25 +21 -1 src/sys/miscfs/nullfs/null_vfsops.c
1.20 +4 -1 src/sys/miscfs/portal/portal_vfsops.c
1.20 +4 -1 src/sys/miscfs/procfs/procfs_vfsops.c
1.21 +17 -1 src/sys/miscfs/umapfs/umap_vfsops.c
1.27 +18 -1 src/sys/miscfs/union/union_vfsops.c
1.29 +2 -1 src/sys/msdosfs/msdosfs_vfsops.c
1.55 +2 -1 src/sys/nfs/nfs_vfsops.c
1.57 +4 -1 src/sys/sys/mount.h
1.73 +2 -1 src/sys/ufs/ffs/ffs_vfsops.c
1.41 +2 -1 src/sys/ufs/mfs/mfs_vfsops.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803012246.OAA03710>
