Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262866AbUDDWKv (ORCPT ); Sun, 4 Apr 2004 18:10:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262874AbUDDWKv (ORCPT ); Sun, 4 Apr 2004 18:10:51 -0400 Received: from mtvcafw.sgi.com ([192.48.171.6]:51147 "EHLO omx3.sgi.com") by vger.kernel.org with ESMTP id S262866AbUDDWKr (ORCPT ); Sun, 4 Apr 2004 18:10:47 -0400 Message-ID: <40708905.2080907@sgi.com> Date: Sun, 04 Apr 2004 17:15:33 -0500 From: Ray Bryant User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Chen, Kenneth W" CC: "'Andy Whitcroft'" , "Martin J. Bligh" , Andrew Morton , linux-kernel@vger.kernel.org, anton@samba.org, sds@epoch.ncsc.mil, ak@suse.de, lse-tech@lists.sourceforge.net, linux-ia64@vger.kernel.org Subject: Re: [PATCH] HUGETLB memory commitment References: <200404040331.i343VSF02496@unix-os.sc.intel.com> In-Reply-To: <200404040331.i343VSF02496@unix-os.sc.intel.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1416 Lines: 47 Ken, If you have user space code that tests this that you can send me I'll use them to fix up the reservation and quota code to handle this case as well. Thanks, Chen, Kenneth W wrote: >>> > > > This assumes all mmap start from the same file offset. IMO, it's not > generic enough. This code will only reserve 1 page for the following > case, but actually there are 4 mapping totaling 4 pages: > > mmap 1 page at file offset 0 > mmap 1 page at file offset HPAGE_SIZE, > mmap 1 page at file offset HPAGE_SIZE*2, > mmap 1 page at file offset HPAGE_SIZE*3, > > Oh, this code broke file system quota accounting as well. > > - Ken > > > - > To unsubscribe from this list: send the line "unsubscribe linux-ia64" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Best Regards, Ray ----------------------------------------------- Ray Bryant 512-453-9679 (work) 512-507-7807 (cell) raybry@sgi.com raybry@austin.rr.com The box said: "Requires Windows 98 or better", so I installed Linux. ----------------------------------------------- - 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/