From owner-cvs-src@FreeBSD.ORG Sun Jun 22 01:41:45 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CFD3837B401; Sun, 22 Jun 2003 01:41:44 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FB5543F3F; Sun, 22 Jun 2003 01:41:44 -0700 (PDT) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h5M8fi0U017619; Sun, 22 Jun 2003 01:41:44 -0700 (PDT) (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h5M8fiHW017615; Sun, 22 Jun 2003 01:41:44 -0700 (PDT) Message-Id: <200306220841.h5M8fiHW017615@repoman.freebsd.org> From: Poul-Henning Kamp Date: Sun, 22 Jun 2003 01:41:44 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD 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 ... X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jun 2003 08:41:45 -0000 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