Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755356AbbDGOJh (ORCPT ); Tue, 7 Apr 2015 10:09:37 -0400 Received: from g2t2354.austin.hp.com ([15.217.128.53]:54040 "EHLO g2t2354.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754210AbbDGOJe (ORCPT ); Tue, 7 Apr 2015 10:09:34 -0400 Message-ID: <1428414669.31093.153.camel@misato.fc.hp.com> Subject: Re: [PATCH v2] x86: Revert E820_PRAM change in e820_end_pfn() From: Toshi Kani To: Christoph Hellwig Cc: Boaz Harrosh , mingo@redhat.com, hpa@zytor.com, tglx@linutronix.de, linux-nvdimm@ml01.01.org, linux-fsdevel@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, Yinghai Lu Date: Tue, 07 Apr 2015 07:51:09 -0600 In-Reply-To: <20150407070453.GB7074@lst.de> References: <1428346839-11997-1-git-send-email-toshi.kani@hp.com> <55237AF5.3050005@plexistor.com> <20150407070453.GB7074@lst.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2138 Lines: 52 On Tue, 2015-04-07 at 09:04 +0200, Christoph Hellwig wrote: > On Tue, Apr 07, 2015 at 09:36:37AM +0300, Boaz Harrosh wrote: > > On 04/06/2015 10:00 PM, Toshi Kani wrote: > > > 'Commit ec776ef6bbe17 ("x86/mm: Add support for the non-standard > > > protected e820 type")' added E820_PRAM ranges, which do not have > > > have struct-page. Therefore, there is no need to update max_pfn > > > to cover the E820_PRAM ranges. > > > > But E820_PRAM ranges will have the possibility for struct-page. > > > > That said I have tested with this patch + struct-page and > > I'd love to resurrect the old "real page backed" pmem support from > the old Intel patches eventually, but with all the arguments on > how we should do I/O on pmem I'd like to keep that a Ń•eparate > discussion. And leaving only fragments of some support in is a bad > idea, Agreed -- it should be a separate discussion and we need to get it straight for 4.1. > so sorry for letting all this slip through.. No problem. > > > -static unsigned long __init e820_end_pfn(unsigned long limit_pfn) > > > +static unsigned long __init e820_end_pfn(unsigned long limit_pfn, unsigned type) > > > > Why don't you rename it to say e820_max_ram_pfn or something with ram > > as you noted, and drop the @type. As Christoph said it is very ugly. You do not > > put an extra parameter because of a bad name? > > > > Anyway you are changing all call sites so it will not even be a bigger > > change > > It's a static function, and we have much worse naming sins in public > ones, so I'm not worried about a _ram more or less. But if people feel > stronly about it I'm fine with adding the _ram. > > I feel pretty stronly against adding back a pointless argument, though. We should keep this patch as a revert/fix, and should not combine with other cleanup. Adding the _ram, etc. can be done as a separate change. Thanks, -Toshi -- 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/