From owner-cvs-all@FreeBSD.ORG Sat Aug 30 04:33:27 2003 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 AB8F416A4BF; Sat, 30 Aug 2003 04:33:27 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60E4643F85; Sat, 30 Aug 2003 04:33:26 -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 h7UBXQ0U023620; Sat, 30 Aug 2003 04:33:26 -0700 (PDT) (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h7UBXPYA023619; Sat, 30 Aug 2003 04:33:26 -0700 (PDT) Message-Id: <200308301133.h7UBXPYA023619@repoman.freebsd.org> From: Poul-Henning Kamp Date: Sat, 30 Aug 2003 04:33:25 -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/vm swap_pager.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: Sat, 30 Aug 2003 11:33:27 -0000 phk 2003/08/30 04:33:25 PDT FreeBSD src repository Modified files: sys/vm swap_pager.c Log: Continue the objectification of the swapdev backends: Remove the vnode and dev_t fields and replace them with a void *. Introduce separate strategy functions for devices and regular (NFS) vnodes. For devices we don't need the vnode v_numoutput stuff. Add a generic swaponsomething() function to add a swapdevice and split the remainder of swaponvp() into swaponvp() and swapondev() which calls this backend. Revision Changes Path 1.226 +106 -59 src/sys/vm/swap_pager.c