Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp549635imm; Thu, 6 Sep 2018 06:42:29 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbibkA0zIdoLFLvKu3z89e58hod4GzdexlZuseqO/GZ6hFi9Bgu3jN3aGYShhGc30S2P5+5 X-Received: by 2002:a63:9c19:: with SMTP id f25-v6mr2777301pge.447.1536241349577; Thu, 06 Sep 2018 06:42:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536241349; cv=none; d=google.com; s=arc-20160816; b=KfADPqNoT4wZxuecu+zwFHCJ3Gb5htZ1yJ5Pl0ILSlXAmOIO/6VnBBuQ9iy47Sg27P oqleQPddO1Y1BnC9KES/HMNuobHXRuGL8FUd8WUwDD7JxfldkApt5Sb5O8Y+JzJks41f SIh/qbEAMHFus+l0yz/TjlM39hAAwM538Odq1gKOVOfggBDboSYVO8IM/ojhWzrxaMf/ IHc4T/OerKkbT1RMk7Txeq/InmVKjIozY3AnqUcgM317ibKwU1pVDql4B2SlFuZr8o1f 2iujKw8tUgt9ho2GdflDwezrLH3WOswzWBT/MtXYIMA6E2LmZumR2ioeakvvUcNm5aRX fGIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date; bh=wawUG261iufmkNQY7mxnhnaCe0H+Ngi/tM61PYnWn98=; b=ZQgaK55x5XVwx/cWwVmuPj1zkvxyT6WYelmLI+zU2VWtiW4RKuJ72VVw6BxSmEellj CDVDPNOJFmtqd4fgn4qO81QAf6BVj36LfhP4N93qdt3TOb0eJOE0eJL8Js8pQVs++sKL 53H4b8w9rEs4NNrAQFXYePBc6aNpulpNZAHV/pdAlSFJLdNg9MRqrEliOvMQxcgGO/dE dsF3c6asdR+fU19TCjTNbEpyYEIAksCP15QsU58zBUFZPb1pnNOp2q2ueT9GWLNuO3z6 3B4/AEeemnGDxR5FQVpWjvF5XNGonJXh1+ULw92JsYwZwq6mpudbNrP+9mffdKZkYEnb mayw== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c2-v6si5472045pgm.236.2018.09.06.06.42.13; Thu, 06 Sep 2018 06:42:29 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729730AbeIFSPr (ORCPT + 99 others); Thu, 6 Sep 2018 14:15:47 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:45284 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729404AbeIFSPq (ORCPT ); Thu, 6 Sep 2018 14:15:46 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w86DdK5T038803 for ; Thu, 6 Sep 2018 09:40:11 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2mb31bprhb-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 06 Sep 2018 09:40:10 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 6 Sep 2018 14:40:08 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 6 Sep 2018 14:40:02 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w86De1wY18415812 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 6 Sep 2018 13:40:01 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 198AB4C040; Thu, 6 Sep 2018 16:39:56 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E54404C044; Thu, 6 Sep 2018 16:39:54 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.8.92]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 6 Sep 2018 16:39:54 +0100 (BST) Date: Thu, 6 Sep 2018 16:39:58 +0300 From: Mike Rapoport To: Michal Hocko 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 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180906130102.GY14951@dhcp22.suse.cz> User-Agent: Mutt/1.5.24 (2015-08-30) X-TM-AS-GCONF: 00 x-cbid: 18090613-0028-0000-0000-000002F541AB X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18090613-0029-0000-0000-000023AEC7B6 Message-Id: <20180906133958.GM27492@rapoport-lnx> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-06_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809060138 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > -- > Michal Hocko > SUSE Labs > -- Sincerely yours, Mike.