From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10128 invoked by alias); 21 Mar 2007 02:12:20 -0000 Received: (qmail 10118 invoked by uid 22791); 21 Mar 2007 02:12:19 -0000 X-Spam-Check-By: sourceware.org Received: from ozlabs.org (HELO ozlabs.org) (203.10.76.45) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 21 Mar 2007 02:12:13 +0000 Received: by ozlabs.org (Postfix, from userid 1010) id C7145DDFC9; Wed, 21 Mar 2007 13:12:07 +1100 (EST) Date: Wed, 21 Mar 2007 02:12:00 -0000 From: Anton Blanchard To: "H. Peter Anvin" Cc: David Miller , hch@infradead.org, arjan@infradead.org, zippel@linux-m68k.org, dmlb2000@gmail.com, linux-kernel@vger.kernel.org, gdb@sourceware.org Subject: Re: PAGE_SIZE Availability Inconsistency Message-ID: <20070321021202.GA11745@kryten> References: <20070308.134825.45514445.davem@davemloft.net> <20070309024324.GA24695@kryten> <45F0E014.8060907@zytor.com> <20070308.202718.68040662.davem@davemloft.net> <45F0E309.70403@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45F0E309.70403@zytor.com> User-Agent: Mutt/1.5.12-2006-07-14 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00239.txt.bz2 Hi, > The advantage would be that it wouldn't require a v3 for platforms for > which MIN_PAGE_SIZE == PAGE_SIZE, which accounts for a very large > percentage of systems. > > You still have to look for the darn magic in two places, so there is no > reason for it to be different. The problem is if you can hit in two places then what PAGE_SIZE should you use to size the contents of the swap header while remaining backward compatible. Im leaning towards Dave suggestion of creating a clean v3 swap header. Anton