From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 27 Apr 2005 16:55:26 +0100 From: Christoph Hellwig Subject: Re: returning non-ram via ->nopage, was Re: [patch] mspec driver for 2.6.12-rc2-mm3 Message-ID: <20050427155526.GA25921@infradead.org> References: <16987.39773.267117.925489@jaguar.mkp.net> <20050412032747.51c0c514.akpm@osdl.org> <20050413204335.GA17012@infradead.org> <20050424101615.GA22393@infradead.org> <20050425144749.GA10093@infradead.org> <426FB56B.5000006@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <426FB56B.5000006@pobox.com> Sender: owner-linux-mm@kvack.org Return-Path: To: Jeff Garzik Cc: Jes Sorensen , Christoph Hellwig , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org List-ID: On Wed, Apr 27, 2005 at 11:53:15AM -0400, Jeff Garzik wrote: > I don't see anything wrong with a ->nopage approach. > > At Linus's suggestion, I used ->nopage in the implementation of > sound/oss/via82cxxx_audio.c. The difference is that you return kernel memory (actually pci_alloc_consistant memory that has it's own set of problems), while this is memory not in mem_map, so he allocates some regularly kernel memory too to have a struct page and just leaks it -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: aart@kvack.org