Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp925788imm; Thu, 6 Sep 2018 12:18:50 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZC6jIWpYal3cvCm0wESGK5PEnei8IXon/iBjsns0Tyq7StCvDgrr7vzOE2wp9GSuV3TFTj X-Received: by 2002:a63:4386:: with SMTP id q128-v6mr4264578pga.353.1536261530531; Thu, 06 Sep 2018 12:18:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536261530; cv=none; d=google.com; s=arc-20160816; b=L0jqs8O7Z1rkGNhPwEDg/tO749n3WoL4V2JLJwtgtF6YEDthhSOIIW8/BpJPEH67Cq b0kkcwIzeRwY+ADBfG36+IuduJmXoRrNpHDHpxmRdtrZlhTfIpNf/25rl2Ti4QF4Bmnv 7GqB4g7mhfZLD/VHW97MBAGQPvipwgU98jN75uyBAumpIR4WS6tNUALNajrwMoqpL8mW C6hzAfA8WdKP/AsK4F0DBudxqGZ6euPqNUOV5c0SfYCAlDBdPy97MRuyyPF6QWxcXkNG 7GQKDJ7EbpFi/Y2IschRzQCbDk+VLXMTNvYa6raeQFY7WuX4ghTPUXovEIssTwMH10Hv yd1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=4ne+kCyVEB+2XWkpKUPvnx0skGaoEAsnGtNkUNjCgbc=; b=wEn9jdEwrK9aFIcorl3gv2T8G9Cj1rjABhoyOTjc5ODof+0NEncG2I5iaQljxYX6pl rdLIBUFnmtSS1Cut5FxV6RgjMi44odXN1FVK1Pe2G2FURdcI9NOZMrfpSE7uyc/5Wtuh 57yUiMDizZRWkFLpAKAzzRk5LmQoyPl8017aaOKnWmWZgfw/JNgkIcXlNpJ+O4Dh/U4H k80utkfM7HeRKhqaUP+9g/crCDq79lJBsWjaUACiWJiCC2+VaLDdhGivXSb/unhdOaWp 1EugnBXWLbkJiHqPIv9L8QdobObRIfVwShxdQtntwFqqrX9chf9QhNcyFfA2/ndKRizD EH1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x24-v6si5511303pln.465.2018.09.06.12.18.34; Thu, 06 Sep 2018 12:18:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729960AbeIFSWI (ORCPT + 99 others); Thu, 6 Sep 2018 14:22:08 -0400 Received: from mx2.suse.de ([195.135.220.15]:44292 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729479AbeIFSWH (ORCPT ); Thu, 6 Sep 2018 14:22:07 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 8199DAFA6; Thu, 6 Sep 2018 13:46:28 +0000 (UTC) Date: Thu, 6 Sep 2018 15:46:27 +0200 From: Michal Hocko To: Mike Rapoport Cc: Rob Herring , linux-mm@kvack.org, Andrew Morton , davem@davemloft.net, Greg Kroah-Hartman , mingo@redhat.com, Michael Ellerman , paul.burton@mips.com, Thomas Gleixner , tony.luck@intel.com, linux-ia64@vger.kernel.org, linux-mips@linux-mips.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [RFC PATCH 07/29] memblock: remove _virt from APIs returning virtual address Message-ID: <20180906134627.GZ14951@dhcp22.suse.cz> References: <1536163184-26356-1-git-send-email-rppt@linux.vnet.ibm.com> <1536163184-26356-8-git-send-email-rppt@linux.vnet.ibm.com> <20180905172017.GA2203@rapoport-lnx> <20180906072800.GN14951@dhcp22.suse.cz> <20180906124321.GD27492@rapoport-lnx> <20180906130102.GY14951@dhcp22.suse.cz> <20180906133958.GM27492@rapoport-lnx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180906133958.GM27492@rapoport-lnx> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 06-09-18 16:39:58, Mike Rapoport wrote: > On Thu, Sep 06, 2018 at 03:01:02PM +0200, Michal Hocko wrote: > > On Thu 06-09-18 15:43:21, Mike Rapoport wrote: > > > On Thu, Sep 06, 2018 at 09:28:00AM +0200, Michal Hocko wrote: > > > > On Wed 05-09-18 20:20:18, Mike Rapoport wrote: > > > > > On Wed, Sep 05, 2018 at 12:04:36PM -0500, Rob Herring wrote: > > > > > > On Wed, Sep 5, 2018 at 11:00 AM Mike Rapoport wrote: > > > > > > > > > > > > > > The conversion is done using > > > > > > > > > > > > > > sed -i 's@memblock_virt_alloc@memblock_alloc@g' \ > > > > > > > $(git grep -l memblock_virt_alloc) > > > > > > > > > > > > What's the reason to do this? It seems like a lot of churn even if a > > > > > > mechanical change. > > > > > > > > > > I felt that memblock_virt_alloc_ is too long for a prefix, e.g: > > > > > memblock_virt_alloc_node_nopanic, memblock_virt_alloc_low_nopanic. > > > > > > > > > > And for consistency I've changed the memblock_virt_alloc as well. > > > > > > > > I would keep the current API unless the name is terribly misleading or > > > > it can be improved a lot. Neither seems to be the case here. So I would > > > > rather stick with the status quo. > > > > > > I'm ok with the memblock_virt_alloc by itself, but having 'virt' in > > > 'memblock_virt_alloc_try_nid_nopanic' and 'memblock_virt_alloc_low_nopanic' > > > reduces code readability in my opinion. > > > > Well, is _nopanic really really useful in the name. Do we even need/want > > implicit panic/nopanic semantic? The code should rather check for the > > return value and decide depending on the code path. I suspect removing > > panic/nopanic would make the API slightly lighter. > > I agree that panic/nopanic should be removed. But I prefer to start with > equivalent replacement to make it as automated as possible and update > memblock API when the dust settles a bit. Yes, I agree with that approach. But that also doesn't justify the renaming -- Michal Hocko SUSE Labs