Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 23 Mar 2003 06:31:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 23 Mar 2003 06:31:57 -0500 Received: from holomorphy.com ([66.224.33.161]:36247 "EHLO holomorphy") by vger.kernel.org with ESMTP id ; Sun, 23 Mar 2003 06:31:56 -0500 Date: Sun, 23 Mar 2003 03:42:39 -0800 From: William Lee Irwin III To: Trond Myklebust Cc: Zwane Mwaikambo , Linux Kernel Subject: Re: RPCSVC_MAXPAGES doesn't account for overhead(?) pages Message-ID: <20030323114239.GF30140@holomorphy.com> Mail-Followup-To: William Lee Irwin III , Trond Myklebust , Zwane Mwaikambo , Linux Kernel References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i Organization: The Domain of Holomorphy Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 771 Lines: 20 " " == Zwane Mwaikambo writes: >> -#define RPCSVC_MAXPAGES >> ((RPCSVC_MAXPAYLOAD+PAGE_SIZE-1)/PAGE_SIZE + 1) + +#define >> RPCSVC_MAXPAGES >> (2+((RPCSVC_MAXPAYLOAD+PAGE_SIZE-1)/PAGE_SIZE+1)) On Sun, Mar 23, 2003 at 12:18:57PM +0100, Trond Myklebust wrote: > Huh? RPCSVC_MAXPAYLOAD is set at 64k. Should be quite ample for a 32k > read or write. Sure, there's just a dependency on PAGE_SIZE we're trying to get sorted out here. If PAGE_SIZE is 64KB (e.g. IA64, pgcl) then this trips a BUG(). -- wli - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/