From: | Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx> |
Date: | Tue, 18 Jul 2006 15:22:16 -0700 (PDT) |
dillon 2006/07/18 15:22:16 PDT DragonFly src repository Modified files: sys/emulation/linux/i386/linprocfs linprocfs_vfsops.c linprocfs_vnops.c sys/kern vfs_default.c vfs_init.c vfs_jops.c vfs_mount.c vfs_subr.c vfs_sync.c vfs_syscalls.c vfs_vopops.c sys/sys mount.h vfsops.h vnode.h sys/vfs/coda coda_vnops.c sys/vfs/deadfs dead_vnops.c sys/vfs/fdesc fdesc_vfsops.c fdesc_vnops.c sys/vfs/fifofs fifo.h fifo_vnops.c sys/vfs/gnu/ext2fs ext2_vfsops.c ext2_vnops.c sys/vfs/hpfs hpfs_vfsops.c hpfs_vnops.c sys/vfs/isofs/cd9660 cd9660_vfsops.c cd9660_vnops.c sys/vfs/mfs mfs_vfsops.c mfs_vnops.c sys/vfs/msdosfs msdosfs_vfsops.c msdosfs_vnops.c sys/vfs/nfs nfs_vfsops.c nfs_vnops.c sys/vfs/ntfs ntfs_vfsops.c ntfs_vnops.c sys/vfs/nullfs null_vfsops.c null_vnops.c sys/vfs/nwfs nwfs_vfsops.c nwfs_vnops.c sys/vfs/portal portal_vfsops.c portal_vnops.c sys/vfs/procfs procfs_vfsops.c procfs_vnops.c sys/vfs/smbfs 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_vfsops.c ffs_vnops.c ufs_vnops.c sys/vfs/union union_vfsops.c union_vnops.c sys/vm vm_swap.c Log: Remove several layers in the vnode operations vector init code. Declare the operations vector directly instead of via a descriptor array. Remove most of the recalculation code, it stopped being needed over a year ago. This work is similar to what FreeBSD now does, but was developed along a different line. Ultimately our vop_ops will become SYSLINK ops for userland VFS and clustering support. Revision Changes Path 1.13 +2 -3 src/sys/emulation/linux/i386/linprocfs/linprocfs_vfsops.c 1.32 +34 -34 src/sys/emulation/linux/i386/linprocfs/linprocfs_vnops.c 1.41 +37 -42 src/sys/kern/vfs_default.c 1.13 +51 -112 src/sys/kern/vfs_init.c 1.28 +36 -38 src/sys/kern/vfs_jops.c 1.18 +3 -3 src/sys/kern/vfs_mount.c 1.91 +2 -3 src/sys/kern/vfs_subr.c 1.11 +13 -16 src/sys/kern/vfs_sync.c 1.97 +10 -10 src/sys/kern/vfs_syscalls.c 1.28 +5 -5 src/sys/kern/vfs_vopops.c 1.27 +1 -7 src/sys/sys/mount.h 1.23 +4 -20 src/sys/sys/vfsops.h 1.61 +15 -34 src/sys/sys/vnode.h 1.39 +36 -52 src/sys/vfs/coda/coda_vnops.c 1.18 +32 -34 src/sys/vfs/deadfs/dead_vnops.c 1.20 +2 -3 src/sys/vfs/fdesc/fdesc_vfsops.c 1.31 +13 -14 src/sys/vfs/fdesc/fdesc_vnops.c 1.5 +1 -1 src/sys/vfs/fifofs/fifo.h 1.31 +32 -36 src/sys/vfs/fifofs/fifo_vnops.c 1.44 +6 -9 src/sys/vfs/gnu/ext2fs/ext2_vfsops.c 1.34 +82 -95 src/sys/vfs/gnu/ext2fs/ext2_vnops.c 1.36 +2 -3 src/sys/vfs/hpfs/hpfs_vfsops.c 1.36 +24 -26 src/sys/vfs/hpfs/hpfs_vnops.c 1.37 +6 -9 src/sys/vfs/isofs/cd9660/cd9660_vfsops.c 1.28 +45 -48 src/sys/vfs/isofs/cd9660/cd9660_vnops.c 1.33 +2 -3 src/sys/vfs/mfs/mfs_vfsops.c 1.29 +21 -23 src/sys/vfs/mfs/mfs_vnops.c 1.36 +2 -3 src/sys/vfs/msdosfs/msdosfs_vfsops.c 1.39 +31 -32 src/sys/vfs/msdosfs/msdosfs_vnops.c 1.44 +6 -9 src/sys/vfs/nfs/nfs_vfsops.c 1.62 +71 -75 src/sys/vfs/nfs/nfs_vnops.c 1.38 +2 -3 src/sys/vfs/ntfs/ntfs_vfsops.c 1.34 +24 -36 src/sys/vfs/ntfs/ntfs_vnops.c 1.22 +2 -3 src/sys/vfs/nullfs/null_vfsops.c 1.27 +11 -12 src/sys/vfs/nullfs/null_vnops.c 1.24 +2 -3 src/sys/vfs/nwfs/nwfs_vfsops.c 1.30 +32 -33 src/sys/vfs/nwfs/nwfs_vnops.c 1.21 +2 -3 src/sys/vfs/portal/portal_vfsops.c 1.30 +13 -14 src/sys/vfs/portal/portal_vnops.c 1.15 +2 -3 src/sys/vfs/procfs/procfs_vfsops.c 1.34 +35 -35 src/sys/vfs/procfs/procfs_vnops.c 1.28 +2 -3 src/sys/vfs/smbfs/smbfs_vfsops.c 1.32 +35 -36 src/sys/vfs/smbfs/smbfs_vnops.c 1.45 +37 -38 src/sys/vfs/specfs/spec_vnops.c 1.20 +2 -3 src/sys/vfs/udf/udf_vfsops.c 1.23 +13 -14 src/sys/vfs/udf/udf_vnops.c 1.45 +11 -7 src/sys/vfs/ufs/ffs_vfsops.c 1.17 +15 -18 src/sys/vfs/ufs/ffs_vnops.c 1.52 +80 -92 src/sys/vfs/ufs/ufs_vnops.c 1.24 +2 -3 src/sys/vfs/union/union_vfsops.c 1.30 +38 -39 src/sys/vfs/union/union_vnops.c 1.27 +6 -9 src/sys/vm/vm_swap.c http://www.dragonflybsd.org/cvsweb/src/sys/emulation/linux/i386/linprocfs/linprocfs_vfsops.c.diff?r1=1.12&r2=1.13&f=u http://www.dragonflybsd.org/cvsweb/src/sys/emulation/linux/i386/linprocfs/linprocfs_vnops.c.diff?r1=1.31&r2=1.32&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_default.c.diff?r1=1.40&r2=1.41&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_init.c.diff?r1=1.12&r2=1.13&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_jops.c.diff?r1=1.27&r2=1.28&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_mount.c.diff?r1=1.17&r2=1.18&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_subr.c.diff?r1=1.90&r2=1.91&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_sync.c.diff?r1=1.10&r2=1.11&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_syscalls.c.diff?r1=1.96&r2=1.97&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_vopops.c.diff?r1=1.27&r2=1.28&f=u http://www.dragonflybsd.org/cvsweb/src/sys/sys/mount.h.diff?r1=1.26&r2=1.27&f=u http://www.dragonflybsd.org/cvsweb/src/sys/sys/vfsops.h.diff?r1=1.22&r2=1.23&f=u http://www.dragonflybsd.org/cvsweb/src/sys/sys/vnode.h.diff?r1=1.60&r2=1.61&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/coda/coda_vnops.c.diff?r1=1.38&r2=1.39&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/deadfs/dead_vnops.c.diff?r1=1.17&r2=1.18&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/fdesc/fdesc_vfsops.c.diff?r1=1.19&r2=1.20&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/fdesc/fdesc_vnops.c.diff?r1=1.30&r2=1.31&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/fifofs/fifo.h.diff?r1=1.4&r2=1.5&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/fifofs/fifo_vnops.c.diff?r1=1.30&r2=1.31&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/gnu/ext2fs/ext2_vfsops.c.diff?r1=1.43&r2=1.44&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/gnu/ext2fs/ext2_vnops.c.diff?r1=1.33&r2=1.34&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/hpfs/hpfs_vfsops.c.diff?r1=1.35&r2=1.36&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/hpfs/hpfs_vnops.c.diff?r1=1.35&r2=1.36&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/isofs/cd9660/cd9660_vfsops.c.diff?r1=1.36&r2=1.37&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/isofs/cd9660/cd9660_vnops.c.diff?r1=1.27&r2=1.28&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/mfs/mfs_vfsops.c.diff?r1=1.32&r2=1.33&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/mfs/mfs_vnops.c.diff?r1=1.28&r2=1.29&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/msdosfs/msdosfs_vfsops.c.diff?r1=1.35&r2=1.36&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/msdosfs/msdosfs_vnops.c.diff?r1=1.38&r2=1.39&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/nfs/nfs_vfsops.c.diff?r1=1.43&r2=1.44&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/nfs/nfs_vnops.c.diff?r1=1.61&r2=1.62&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/ntfs/ntfs_vfsops.c.diff?r1=1.37&r2=1.38&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/ntfs/ntfs_vnops.c.diff?r1=1.33&r2=1.34&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/nullfs/null_vfsops.c.diff?r1=1.21&r2=1.22&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/nullfs/null_vnops.c.diff?r1=1.26&r2=1.27&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/nwfs/nwfs_vfsops.c.diff?r1=1.23&r2=1.24&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/nwfs/nwfs_vnops.c.diff?r1=1.29&r2=1.30&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/portal/portal_vfsops.c.diff?r1=1.20&r2=1.21&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/portal/portal_vnops.c.diff?r1=1.29&r2=1.30&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/procfs/procfs_vfsops.c.diff?r1=1.14&r2=1.15&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/procfs/procfs_vnops.c.diff?r1=1.33&r2=1.34&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/smbfs/smbfs_vfsops.c.diff?r1=1.27&r2=1.28&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/smbfs/smbfs_vnops.c.diff?r1=1.31&r2=1.32&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/specfs/spec_vnops.c.diff?r1=1.44&r2=1.45&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/udf/udf_vfsops.c.diff?r1=1.19&r2=1.20&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/udf/udf_vnops.c.diff?r1=1.22&r2=1.23&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/ufs/ffs_vfsops.c.diff?r1=1.44&r2=1.45&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/ufs/ffs_vnops.c.diff?r1=1.16&r2=1.17&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/ufs/ufs_vnops.c.diff?r1=1.51&r2=1.52&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/union/union_vfsops.c.diff?r1=1.23&r2=1.24&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/union/union_vnops.c.diff?r1=1.29&r2=1.30&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vm/vm_swap.c.diff?r1=1.26&r2=1.27&f=u