Date: Sun, 13 Oct 2002 20:20:36 -0700 (PDT) From: Kirk McKusick <mckusick@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/fs/hpfs hpfs.h hpfs_vfsops.c hpfs_vnops.c src/sys/fs/msdosfs msdosfs_denode.c src/sys/fs/ntfs ntfs_inode.h ntfs_subr.c ntfs_vfsops.c src/sys/fs/nullfs null_subr.c null_vnops.c src/sys/fs/nwfs nwfs_node.c src/sys/fs/pseudofs ... Message-ID: <200210140320.g9E3KaAW057780@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
mckusick 2002/10/13 20:20:36 PDT Modified files: sys/fs/hpfs hpfs.h hpfs_vfsops.c hpfs_vnops.c sys/fs/msdosfs msdosfs_denode.c sys/fs/ntfs ntfs_inode.h ntfs_subr.c ntfs_vfsops.c sys/fs/nullfs null_subr.c null_vnops.c sys/fs/nwfs nwfs_node.c sys/fs/pseudofs pseudofs_vncache.c sys/fs/smbfs smbfs_io.c smbfs_node.c sys/fs/udf udf_vfsops.c udf_vnops.c sys/fs/unionfs union.h union_subr.c union_vnops.c sys/gnu/ext2fs ext2_ihash.c ext2_inode.c ext2_vfsops.c sys/isofs/cd9660 cd9660_node.c cd9660_vfsops.c sys/kern vfs_default.c vfs_subr.c sys/nfsclient nfs_node.c sys/security/lomac lomacfs_vnops.c sys/ufs/ffs ffs_vfsops.c sys/ufs/ufs ufs_inode.c Log: Regularize the vop_stdlock'ing protocol across all the filesystems that use it. Specifically, vop_stdlock uses the lock pointed to by vp->v_vnlock. By default, getnewvnode sets up vp->v_vnlock to reference vp->v_lock. Filesystems that wish to use the default do not need to allocate a lock at the front of their node structure (as some still did) or do a lockinit. They can simply start using vn_lock/VOP_UNLOCK. Filesystems that wish to manage their own locks, but still use the vop_stdlock functions (such as nullfs) can simply replace vp->v_vnlock with a pointer to the lock that they wish to have used for the vnode. Such filesystems are responsible for setting the vp->v_vnlock back to the default in their vop_reclaim routine (e.g., vp->v_vnlock = &vp->v_lock). In theory, this set of changes cleans up the existing filesystem lock interface and should have no function change to the existing locking scheme. Sponsored by: DARPA & NAI Labs. Revision Changes Path 1.13 +0 -1 src/sys/fs/hpfs/hpfs.h 1.29 +0 -1 src/sys/fs/hpfs/hpfs_vfsops.c 1.35 +0 -1 src/sys/fs/hpfs/hpfs_vnops.c 1.66 +0 -3 src/sys/fs/msdosfs/msdosfs_denode.c 1.11 +0 -2 src/sys/fs/ntfs/ntfs_inode.h 1.26 +0 -1 src/sys/fs/ntfs/ntfs_subr.c 1.50 +0 -1 src/sys/fs/ntfs/ntfs_vfsops.c 1.38 +0 -3 src/sys/fs/nullfs/null_subr.c 1.59 +1 -0 src/sys/fs/nullfs/null_vnops.c 1.27 +1 -1 src/sys/fs/nwfs/nwfs_node.c 1.18 +1 -2 src/sys/fs/pseudofs/pseudofs_vncache.c 1.14 +1 -1 src/sys/fs/smbfs/smbfs_io.c 1.10 +1 -1 src/sys/fs/smbfs/smbfs_node.c 1.7 +0 -2 src/sys/fs/udf/udf_vfsops.c 1.17 +1 -3 src/sys/fs/udf/udf_vnops.c 1.26 +0 -5 src/sys/fs/unionfs/union.h 1.65 +0 -2 src/sys/fs/unionfs/union_subr.c 1.94 +0 -84 src/sys/fs/unionfs/union_vnops.c 1.36 +1 -1 src/sys/gnu/ext2fs/ext2_ihash.c 1.37 +0 -1 src/sys/gnu/ext2fs/ext2_inode.c 1.100 +0 -1 src/sys/gnu/ext2fs/ext2_vfsops.c 1.44 +1 -2 src/sys/isofs/cd9660/cd9660_node.c 1.105 +0 -5 src/sys/isofs/cd9660/cd9660_vfsops.c 1.67 +7 -7 src/sys/kern/vfs_default.c 1.413 +8 -9 src/sys/kern/vfs_subr.c 1.58 +0 -1 src/sys/nfsclient/nfs_node.c 1.9 +4 -4 src/sys/security/lomac/lomacfs_vnops.c 1.193 +2 -3 src/sys/ufs/ffs/ffs_vfsops.c 1.48 +0 -1 src/sys/ufs/ufs/ufs_inode.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?200210140320.g9E3KaAW057780>