From: | Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx> |
Date: | Fri, 5 May 2006 14:15:11 -0700 (PDT) |
dillon 2006/05/05 14:15:11 PDT DragonFly src repository Modified files: sys/dev/disk/ccd ccd.c sys/dev/disk/vn vn.c sys/emulation/ibcs2/coff imgact_coff.c sys/emulation/ibcs2/i386 ibcs2_misc.c sys/emulation/linux linux_file.c linux_misc.c sys/emulation/linux/i386/linprocfs linprocfs_vnops.c sys/emulation/ndis subr_ndis.c sys/emulation/svr4 svr4_misc.c sys/kern imgact_elf.c init_main.c kern_acct.c kern_acl.c kern_exec.c kern_ktrace.c kern_sig.c link_aout.c link_elf.c tty.c tty_tty.c uipc_syscalls.c uipc_usrreq.c vfs_cache.c vfs_default.c vfs_lock.c vfs_lookup.c vfs_nlookup.c vfs_subr.c vfs_syscalls.c vfs_vnops.c vfs_vopops.c sys/netproto/smb smb_conn.c sys/sys vfsops.h vnode.h sys/vfs/coda coda_vnops.c sys/vfs/fdesc fdesc_vfsops.c fdesc_vnops.c sys/vfs/fifofs fifo_vnops.c sys/vfs/gnu/ext2fs ext2_lookup.c ext2_quota.c ext2_vfsops.c ext2_vnops.c fs.h sys/vfs/hpfs hpfs.h sys/vfs/isofs/cd9660 cd9660_lookup.c cd9660_vfsops.c sys/vfs/msdosfs msdosfs_lookup.c msdosfs_vfsops.c msdosfs_vnops.c sys/vfs/nfs nfs_serv.c nfs_subs.c nfs_vfsops.c nfs_vnops.c sys/vfs/ntfs ntfs.h sys/vfs/nullfs null_vfsops.c sys/vfs/nwfs nwfs_vfsops.c nwfs_vnops.c sys/vfs/portal portal_vfsops.c sys/vfs/procfs procfs_vnops.c sys/vfs/smbfs smbfs_io.c smbfs_vfsops.c smbfs_vnops.c sys/vfs/specfs spec_vnops.c sys/vfs/udf udf_vfsops.c udf_vnops.c sys/vfs/ufs ffs_rawread.c ffs_softdep.c ffs_vfsops.c ufs_lookup.c ufs_quota.c ufs_vnops.c sys/vfs/umapfs umap_vfsops.c sys/vfs/union union_subr.c union_vfsops.c union_vnops.c sys/vm vm_contig.c vm_map.c vm_swap.c Log: Simplify vn_lock(), VOP_LOCK(), and VOP_UNLOCK() by removing the thread_t argument. These calls now always use the current thread as the lockholder. Passing a thread_t to these functions has always been questionable at best. Revision Changes Path 1.31 +1 -1 src/sys/dev/disk/ccd/ccd.c 1.23 +5 -5 src/sys/dev/disk/vn/vn.c 1.15 +2 -2 src/sys/emulation/ibcs2/coff/imgact_coff.c 1.12 +4 -4 src/sys/emulation/ibcs2/i386/ibcs2_misc.c 1.27 +2 -2 src/sys/emulation/linux/linux_file.c 1.26 +2 -2 src/sys/emulation/linux/linux_misc.c 1.29 +1 -1 src/sys/emulation/linux/i386/linprocfs/linprocfs_vnops.c 1.12 +1 -1 src/sys/emulation/ndis/subr_ndis.c 1.33 +6 -6 src/sys/emulation/svr4/svr4_misc.c 1.36 +3 -4 src/sys/kern/imgact_elf.c 1.52 +1 -1 src/sys/kern/init_main.c 1.21 +1 -1 src/sys/kern/kern_acct.c 1.11 +4 -4 src/sys/kern/kern_acl.c 1.37 +2 -2 src/sys/kern/kern_exec.c 1.21 +3 -3 src/sys/kern/kern_ktrace.c 1.45 +3 -3 src/sys/kern/kern_sig.c 1.16 +1 -1 src/sys/kern/link_aout.c 1.18 +1 -1 src/sys/kern/link_elf.c 1.22 +2 -2 src/sys/kern/tty.c 1.14 +4 -4 src/sys/kern/tty_tty.c 1.63 +2 -2 src/sys/kern/uipc_syscalls.c 1.23 +1 -1 src/sys/kern/uipc_usrreq.c 1.65 +3 -3 src/sys/kern/vfs_cache.c 1.38 +13 -15 src/sys/kern/vfs_default.c 1.16 +3 -3 src/sys/kern/vfs_lock.c 1.22 +2 -3 src/sys/kern/vfs_lookup.c 1.13 +1 -1 src/sys/kern/vfs_nlookup.c 1.82 +2 -3 src/sys/kern/vfs_subr.c 1.84 +20 -20 src/sys/kern/vfs_syscalls.c 1.38 +15 -16 src/sys/kern/vfs_vnops.c 1.24 +2 -4 src/sys/kern/vfs_vopops.c 1.16 +0 -2 src/sys/netproto/smb/smb_conn.c 1.21 +6 -10 src/sys/sys/vfsops.h 1.51 +4 -4 src/sys/sys/vnode.h 1.37 +6 -6 src/sys/vfs/coda/coda_vnops.c 1.18 +1 -2 src/sys/vfs/fdesc/fdesc_vfsops.c 1.26 +4 -4 src/sys/vfs/fdesc/fdesc_vnops.c 1.27 +8 -9 src/sys/vfs/fifofs/fifo_vnops.c 1.21 +7 -8 src/sys/vfs/gnu/ext2fs/ext2_lookup.c 1.2 +6 -8 src/sys/vfs/gnu/ext2fs/ext2_quota.c 1.39 +13 -13 src/sys/vfs/gnu/ext2fs/ext2_vfsops.c 1.32 +11 -13 src/sys/vfs/gnu/ext2fs/ext2_vnops.c 1.10 +2 -2 src/sys/vfs/gnu/ext2fs/fs.h 1.18 +3 -3 src/sys/vfs/hpfs/hpfs.h 1.22 +4 -5 src/sys/vfs/isofs/cd9660/cd9660_lookup.c 1.34 +6 -6 src/sys/vfs/isofs/cd9660/cd9660_vfsops.c 1.18 +7 -8 src/sys/vfs/msdosfs/msdosfs_lookup.c 1.32 +11 -11 src/sys/vfs/msdosfs/msdosfs_vfsops.c 1.36 +6 -7 src/sys/vfs/msdosfs/msdosfs_vnops.c 1.34 +7 -7 src/sys/vfs/nfs/nfs_serv.c 1.38 +1 -2 src/sys/vfs/nfs/nfs_subs.c 1.39 +1 -1 src/sys/vfs/nfs/nfs_vfsops.c 1.60 +6 -7 src/sys/vfs/nfs/nfs_vnops.c 1.11 +2 -2 src/sys/vfs/ntfs/ntfs.h 1.20 +2 -3 src/sys/vfs/nullfs/null_vfsops.c 1.21 +1 -1 src/sys/vfs/nwfs/nwfs_vfsops.c 1.28 +7 -7 src/sys/vfs/nwfs/nwfs_vnops.c 1.18 +1 -2 src/sys/vfs/portal/portal_vfsops.c 1.30 +1 -1 src/sys/vfs/procfs/procfs_vnops.c 1.24 +2 -2 src/sys/vfs/smbfs/smbfs_io.c 1.25 +1 -1 src/sys/vfs/smbfs/smbfs_vfsops.c 1.29 +7 -7 src/sys/vfs/smbfs/smbfs_vnops.c 1.42 +8 -8 src/sys/vfs/specfs/spec_vnops.c 1.17 +4 -4 src/sys/vfs/udf/udf_vfsops.c 1.20 +1 -1 src/sys/vfs/udf/udf_vnops.c 1.23 +4 -4 src/sys/vfs/ufs/ffs_rawread.c 1.41 +4 -5 src/sys/vfs/ufs/ffs_softdep.c 1.40 +17 -17 src/sys/vfs/ufs/ffs_vfsops.c 1.24 +13 -14 src/sys/vfs/ufs/ufs_lookup.c 1.20 +6 -8 src/sys/vfs/ufs/ufs_quota.c 1.47 +9 -11 src/sys/vfs/ufs/ufs_vnops.c 1.19 +2 -2 src/sys/vfs/umapfs/umap_vfsops.c 1.23 +16 -16 src/sys/vfs/union/union_subr.c 1.22 +1 -1 src/sys/vfs/union/union_vfsops.c 1.27 +30 -31 src/sys/vfs/union/union_vnops.c 1.16 +2 -4 src/sys/vm/vm_contig.c 1.43 +2 -4 src/sys/vm/vm_map.c 1.24 +2 -2 src/sys/vm/vm_swap.c http://www.dragonflybsd.org/cvsweb/src/sys/dev/disk/ccd/ccd.c.diff?r1=1.30&r2=1.31&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/disk/vn/vn.c.diff?r1=1.22&r2=1.23&f=u http://www.dragonflybsd.org/cvsweb/src/sys/emulation/ibcs2/coff/imgact_coff.c.diff?r1=1.14&r2=1.15&f=u http://www.dragonflybsd.org/cvsweb/src/sys/emulation/ibcs2/i386/ibcs2_misc.c.diff?r1=1.11&r2=1.12&f=u http://www.dragonflybsd.org/cvsweb/src/sys/emulation/linux/linux_file.c.diff?r1=1.26&r2=1.27&f=u http://www.dragonflybsd.org/cvsweb/src/sys/emulation/linux/linux_misc.c.diff?r1=1.25&r2=1.26&f=u http://www.dragonflybsd.org/cvsweb/src/sys/emulation/linux/i386/linprocfs/linprocfs_vnops.c.diff?r1=1.28&r2=1.29&f=u http://www.dragonflybsd.org/cvsweb/src/sys/emulation/ndis/subr_ndis.c.diff?r1=1.11&r2=1.12&f=u http://www.dragonflybsd.org/cvsweb/src/sys/emulation/svr4/svr4_misc.c.diff?r1=1.32&r2=1.33&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/imgact_elf.c.diff?r1=1.35&r2=1.36&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/init_main.c.diff?r1=1.51&r2=1.52&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_acct.c.diff?r1=1.20&r2=1.21&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_acl.c.diff?r1=1.10&r2=1.11&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_exec.c.diff?r1=1.36&r2=1.37&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_ktrace.c.diff?r1=1.20&r2=1.21&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_sig.c.diff?r1=1.44&r2=1.45&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/link_aout.c.diff?r1=1.15&r2=1.16&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/link_elf.c.diff?r1=1.17&r2=1.18&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/tty.c.diff?r1=1.21&r2=1.22&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/tty_tty.c.diff?r1=1.13&r2=1.14&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/uipc_syscalls.c.diff?r1=1.62&r2=1.63&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/uipc_usrreq.c.diff?r1=1.22&r2=1.23&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_cache.c.diff?r1=1.64&r2=1.65&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_default.c.diff?r1=1.37&r2=1.38&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_lock.c.diff?r1=1.15&r2=1.16&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_lookup.c.diff?r1=1.21&r2=1.22&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_nlookup.c.diff?r1=1.12&r2=1.13&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_subr.c.diff?r1=1.81&r2=1.82&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_syscalls.c.diff?r1=1.83&r2=1.84&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_vnops.c.diff?r1=1.37&r2=1.38&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_vopops.c.diff?r1=1.23&r2=1.24&f=u http://www.dragonflybsd.org/cvsweb/src/sys/netproto/smb/smb_conn.c.diff?r1=1.15&r2=1.16&f=u http://www.dragonflybsd.org/cvsweb/src/sys/sys/vfsops.h.diff?r1=1.20&r2=1.21&f=u http://www.dragonflybsd.org/cvsweb/src/sys/sys/vnode.h.diff?r1=1.50&r2=1.51&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/coda/coda_vnops.c.diff?r1=1.36&r2=1.37&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/fdesc/fdesc_vfsops.c.diff?r1=1.17&r2=1.18&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/fdesc/fdesc_vnops.c.diff?r1=1.25&r2=1.26&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/fifofs/fifo_vnops.c.diff?r1=1.26&r2=1.27&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/gnu/ext2fs/ext2_lookup.c.diff?r1=1.20&r2=1.21&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/gnu/ext2fs/ext2_quota.c.diff?r1=1.1&r2=1.2&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/gnu/ext2fs/ext2_vfsops.c.diff?r1=1.38&r2=1.39&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/gnu/ext2fs/ext2_vnops.c.diff?r1=1.31&r2=1.32&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/gnu/ext2fs/fs.h.diff?r1=1.9&r2=1.10&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/hpfs/hpfs.h.diff?r1=1.17&r2=1.18&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/isofs/cd9660/cd9660_lookup.c.diff?r1=1.21&r2=1.22&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/isofs/cd9660/cd9660_vfsops.c.diff?r1=1.33&r2=1.34&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/msdosfs/msdosfs_lookup.c.diff?r1=1.17&r2=1.18&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/msdosfs/msdosfs_vfsops.c.diff?r1=1.31&r2=1.32&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/msdosfs/msdosfs_vnops.c.diff?r1=1.35&r2=1.36&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/nfs/nfs_serv.c.diff?r1=1.33&r2=1.34&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/nfs/nfs_subs.c.diff?r1=1.37&r2=1.38&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/nfs/nfs_vfsops.c.diff?r1=1.38&r2=1.39&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/nfs/nfs_vnops.c.diff?r1=1.59&r2=1.60&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/ntfs/ntfs.h.diff?r1=1.10&r2=1.11&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/nullfs/null_vfsops.c.diff?r1=1.19&r2=1.20&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/nwfs/nwfs_vfsops.c.diff?r1=1.20&r2=1.21&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/nwfs/nwfs_vnops.c.diff?r1=1.27&r2=1.28&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/portal/portal_vfsops.c.diff?r1=1.17&r2=1.18&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/procfs/procfs_vnops.c.diff?r1=1.29&r2=1.30&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/smbfs/smbfs_io.c.diff?r1=1.23&r2=1.24&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/smbfs/smbfs_vfsops.c.diff?r1=1.24&r2=1.25&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/smbfs/smbfs_vnops.c.diff?r1=1.28&r2=1.29&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/specfs/spec_vnops.c.diff?r1=1.41&r2=1.42&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/udf/udf_vfsops.c.diff?r1=1.16&r2=1.17&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/udf/udf_vnops.c.diff?r1=1.19&r2=1.20&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/ufs/ffs_rawread.c.diff?r1=1.22&r2=1.23&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/ufs/ffs_softdep.c.diff?r1=1.40&r2=1.41&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/ufs/ffs_vfsops.c.diff?r1=1.39&r2=1.40&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/ufs/ufs_lookup.c.diff?r1=1.23&r2=1.24&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/ufs/ufs_quota.c.diff?r1=1.19&r2=1.20&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/ufs/ufs_vnops.c.diff?r1=1.46&r2=1.47&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/umapfs/umap_vfsops.c.diff?r1=1.18&r2=1.19&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/union/union_subr.c.diff?r1=1.22&r2=1.23&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/union/union_vfsops.c.diff?r1=1.21&r2=1.22&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/union/union_vnops.c.diff?r1=1.26&r2=1.27&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vm/vm_contig.c.diff?r1=1.15&r2=1.16&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vm/vm_map.c.diff?r1=1.42&r2=1.43&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vm/vm_swap.c.diff?r1=1.23&r2=1.24&f=u