From owner-cvs-all@FreeBSD.ORG Mon Sep 13 07:29:45 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 8CDF416A4CE; Mon, 13 Sep 2004 07:29:45 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8238643D1D; Mon, 13 Sep 2004 07:29:45 +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 i8D7TjeJ061743; Mon, 13 Sep 2004 07:29:45 GMT (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i8D7TjLl061742; Mon, 13 Sep 2004 07:29:45 GMT (envelope-from phk) Message-Id: <200409130729.i8D7TjLl061742@repoman.freebsd.org> From: Poul-Henning Kamp Date: Mon, 13 Sep 2004 07:29:45 +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/kern kern_conf.c src/sys/sys conf.h src/sys/ufs/ffs ffs_snapshot.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: Mon, 13 Sep 2004 07:29:45 -0000 phk 2004-09-13 07:29:45 UTC FreeBSD src repository Modified files: sys/kern kern_conf.c sys/sys conf.h sys/ufs/ffs ffs_snapshot.c Log: Create struct snapdata which contains the snapshot fields from cdev and the previously malloc'ed snapshot lock. Malloc struct snapdata instead of just the lock. Replace snapshot fields in cdev with pointer to snapdata (saves 16 bytes). While here, give the private readblock() function a vnode argument in preparation for moving UFS to access GEOM directly. Revision Changes Path 1.157 +0 -1 src/sys/kern/kern_conf.c 1.193 +3 -7 src/sys/sys/conf.h 1.85 +88 -70 src/sys/ufs/ffs/ffs_snapshot.c