From owner-cvs-all@FreeBSD.ORG Sun Oct 24 20:03:41 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E035E16A4CE; Sun, 24 Oct 2004 20:03:41 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id CED0943D1D; Sun, 24 Oct 2004 20:03:41 +0000 (GMT) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i9OK3f6f039705; Sun, 24 Oct 2004 20:03:41 GMT (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i9OK3fN4039704; Sun, 24 Oct 2004 20:03:41 GMT (envelope-from phk) Message-Id: <200410242003.i9OK3fN4039704@repoman.freebsd.org> From: Poul-Henning Kamp Date: Sun, 24 Oct 2004 20:03:41 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/gnu/ext2fs ext2_bmap.c ext2_inode.c src/sys/kern vfs_bio.c vfs_cluster.c vfs_subr.c src/sys/nfs4client nfs4_vnops.c src/sys/nfsclient nfs_bio.c nfs_node.c nfs_vnops.c... X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Oct 2004 20:03:42 -0000 phk 2004-10-24 20:03:41 UTC FreeBSD src repository Modified files: sys/gnu/ext2fs ext2_bmap.c ext2_inode.c sys/kern vfs_bio.c vfs_cluster.c vfs_subr.c sys/nfs4client nfs4_vnops.c sys/nfsclient nfs_bio.c nfs_node.c nfs_vnops.c nfsnode.h sys/sys buf.h bufobj.h sys/ufs/ffs ffs_inode.c sys/ufs/ufs ufs_bmap.c sys/vm swap_pager.c vm_pager.c vnode_pager.c Log: Move the buffer method vector (buf->b_op) to the bufobj. Extend it with a strategy method. Add bufstrategy() which do the usual VOP_SPECSTRATEGY/VOP_STRATEGY song and dance. Rename ibwrite to bufwrite(). Move the two NFS buf_ops to more sensible places, add bufstrategy to them. Add inlines for bwrite() and bstrategy() which calls through buf->b_bufobj->b_ops->b_{write,strategy}(). Replace almost all VOP_STRATEGY()/VOP_SPECSTRATEGY() calls with bstrategy(). Revision Changes Path 1.59 +1 -1 src/sys/gnu/ext2fs/ext2_bmap.c 1.48 +1 -1 src/sys/gnu/ext2fs/ext2_inode.c 1.454 +18 -37 src/sys/kern/vfs_bio.c 1.154 +2 -5 src/sys/kern/vfs_cluster.c 1.538 +1 -0 src/sys/kern/vfs_subr.c 1.12 +20 -1 src/sys/nfs4client/nfs4_vnops.c 1.138 +2 -35 src/sys/nfsclient/nfs_bio.c 1.68 +4 -0 src/sys/nfsclient/nfs_node.c 1.226 +18 -1 src/sys/nfsclient/nfs_vnops.c 1.46 +2 -0 src/sys/nfsclient/nfsnode.h 1.172 +22 -9 src/sys/sys/buf.h 1.5 +15 -0 src/sys/sys/bufobj.h 1.94 +1 -1 src/sys/ufs/ffs/ffs_inode.c 1.62 +1 -1 src/sys/ufs/ufs/ufs_bmap.c 1.260 +1 -1 src/sys/vm/swap_pager.c 1.96 +0 -1 src/sys/vm/vm_pager.c 1.199 +2 -8 src/sys/vm/vnode_pager.c