Date: Sun, 22 Jun 2003 01:41:44 -0700 (PDT) From: Poul-Henning Kamp <phk@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/osf1 osf1_mount.c src/sys/compat/linux linux_file.c linux_stats.c src/sys/compat/svr4 svr4_fcntl.c svr4_misc.c src/sys/fs/fdescfs fdesc_vnops.c src/sys/fs/unionfs union_subr.c src/sys/i386/ibcs2 ibcs2_misc.c ibcs2_stat.c ... Message-ID: <200306220841.h5M8fiHW017615@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
phk 2003/06/22 01:41:43 PDT FreeBSD src repository Modified files: sys/alpha/osf1 osf1_mount.c sys/compat/linux linux_file.c linux_stats.c sys/compat/svr4 svr4_fcntl.c svr4_misc.c sys/fs/fdescfs fdesc_vnops.c sys/fs/unionfs union_subr.c sys/i386/ibcs2 ibcs2_misc.c ibcs2_stat.c sys/kern kern_acl.c kern_descrip.c kern_mac.c vfs_aio.c vfs_syscalls.c vfs_vnops.c sys/netsmb smb_dev.c sys/sys file.h sys/vm vm_mmap.c Log: Add a f_vnode field to struct file. Several of the subtypes have an associated vnode which is used for stuff like the f*() functions. By giving the vnode a speparate field, a number of checks for the specific subtype can be replaced simply with a check for f_vnode != NULL, and we can later free f_data up to subtype specific use. At this point in time, f_data still points to the vnode, so any code I might have overlooked will still work. Revision Changes Path 1.16 +1 -1 src/sys/alpha/osf1/osf1_mount.c 1.82 +1 -1 src/sys/compat/linux/linux_file.c 1.55 +1 -1 src/sys/compat/linux/linux_stats.c 1.32 +1 -1 src/sys/compat/svr4/svr4_fcntl.c 1.65 +3 -3 src/sys/compat/svr4/svr4_misc.c 1.89 +1 -1 src/sys/fs/fdescfs/fdesc_vnops.c 1.74 +1 -0 src/sys/fs/unionfs/union_subr.c 1.51 +2 -2 src/sys/i386/ibcs2/ibcs2_misc.c 1.23 +1 -1 src/sys/i386/ibcs2/ibcs2_stat.c 1.42 +4 -4 src/sys/kern/kern_acl.c 1.206 +11 -10 src/sys/kern/kern_descrip.c 1.92 +2 -2 src/sys/kern/kern_mac.c 1.164 +2 -2 src/sys/kern/vfs_aio.c 1.322 +20 -16 src/sys/kern/vfs_syscalls.c 1.189 +7 -7 src/sys/kern/vfs_vnops.c 1.18 +1 -1 src/sys/netsmb/smb_dev.c 1.63 +1 -0 src/sys/sys/file.h 1.162 +1 -1 src/sys/vm/vm_mmap.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306220841.h5M8fiHW017615>