Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965164AbXBTUB1 (ORCPT ); Tue, 20 Feb 2007 15:01:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965194AbXBTUB1 (ORCPT ); Tue, 20 Feb 2007 15:01:27 -0500 Received: from gate.crashing.org ([63.228.1.57]:54194 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965164AbXBTUB1 (ORCPT ); Tue, 20 Feb 2007 15:01:27 -0500 Subject: Re: [PATCH 0/7] [RFC] hugetlb: pagetable_operations API From: Benjamin Herrenschmidt To: Arjan van de Ven Cc: Adam Litke , linux-mm@kvack.org, linux-kernel@vger.kernel.org In-Reply-To: <1171919736.3531.98.camel@laptopd505.fenrus.org> References: <20070219183123.27318.27319.stgit@localhost.localdomain> <1171910581.3531.89.camel@laptopd505.fenrus.org> <1171913691.22940.30.camel@localhost.localdomain> <1171919736.3531.98.camel@laptopd505.fenrus.org> Content-Type: text/plain Date: Wed, 21 Feb 2007 06:57:40 +1100 Message-Id: <1172001460.18571.134.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1437 Lines: 35 > maybe. I'm not entirely convinced... (I like the cleanup potential a lot > code wise.. but if it costs performance, then... well I'd hate to see > linux get slower for hugetlbfs) > > > If not, then I definitely wouldn't > > mind creating a default_pagetable_ops and calling into that. > > ... but without it to be honest, your patch adds nothing real.. there's > ONE user of your code, and there's no real cleanup unless you get rid of > all the special casing.... since the special casing is the really ugly > part of hugetlbfs, not the actual code inside the special case.. Well... I disagree there too :-) I've been working recently for example on some spufs improvements that require similar tweaking of the user address space as hugetlbfs. The problem I have is that while there are hooks in the generic code pretty much everywhere I need.... they are all hugetlb specific, that is they call directly into the hugetlb code. For now, I found ways of doing my stuff without hooking all over the page table operations (well, I had no real choices) but I can imagine it making sense to allow something (hugetlb being one of them) to take over part of the user address space. Ben. - 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/