Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp530818img; Thu, 21 Mar 2019 03:36:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwlwEgxjrLywShj9VgpipTCip35SuMwLW2o6FK30YzMOWcYboWoGzakP4UhcWmyv2hhKjS5 X-Received: by 2002:a63:fd10:: with SMTP id d16mr2636052pgh.306.1553164574272; Thu, 21 Mar 2019 03:36:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553164574; cv=none; d=google.com; s=arc-20160816; b=nNs5sGO8RQLW44LzKtj8V+5oc0tDzDRD1C/tmczUrIAZi60qM6cPD1mXreRjnwbnwa kFrqEPMh38LuE5FH7fR94iaoUJLFnEO3l4j0W7OzjEGZRCP6PixqRON5UIWZOCu5fyel nLbkpRcCyr6TA7teNLsE5/ySNwj1wvOrbw9/ly3HSfVo3USkHhMChKRLoZEFkI2tWQfT /cnWUg+hkwB0KRO7J+SyUoCOA3lVvQ1kvzKnjziajtyFI7CP/iEOD9EpLLyp9lHRUpbf H7eiM2xfKY54yUdQpq/52G9vjMQDaAXhyPOkhhF+KJUEM0HsWtXMj9vuxJiadK40kA0P 9ajw== 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=fzOsMeHaWBsruDsnLAEQHTdUyCuvA4uT0hMcHvsGVYw=; b=WQRK9wUyYNlLj7HPJK6DgT6cCW3u72r0fBnbO231yAsH9U2mXnCjzLsYDuKsbn3WQy 84LS0z7pKV7IbHu8rdF40nTzRXHy8TSuTUk2HiZwkaFu6stuHNreEri4rqvQHB3Is9kM Iu7I/pWYdCW63t7Qwln+KCBGE/W/lGQ/4Px6N1CLMWxOWQ8uS4KluoscV2bqhkuU+nfA ZRnraWwUofqZCe7yh1cXEgQ+b18gBLNP1y0MFaSJWipfr2Ee1rfpM+knelSgHhqAH/TX h7reEFzkPAcrGoVstY1/mnS090zzgfs6Fqd3DGZIlOPF0Bv8td9m4kMx1TRkiynbhXQ0 z62Q== 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 b24si3822728pgl.23.2019.03.21.03.35.59; Thu, 21 Mar 2019 03:36:14 -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 S1727915AbfCUKfY (ORCPT + 99 others); Thu, 21 Mar 2019 06:35:24 -0400 Received: from mx2.suse.de ([195.135.220.15]:59700 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727857AbfCUKfY (ORCPT ); Thu, 21 Mar 2019 06:35:24 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B8482ADFF; Thu, 21 Mar 2019 10:35:22 +0000 (UTC) Date: Thu, 21 Mar 2019 11:35:21 +0100 From: Michal Hocko To: William Kucharski Cc: Baoquan He , Matthew Wilcox , Mike Rapoport , Oscar Salvador , LKML , Andrew Morton , Pavel Tatashin , rppt@linux.vnet.ibm.com, richard.weiyang@gmail.com, linux-mm@kvack.org Subject: Re: [PATCH 1/3] mm/sparse: Clean up the obsolete code comment Message-ID: <20190321103521.GO8696@dhcp22.suse.cz> References: <20190320073540.12866-1-bhe@redhat.com> <20190320111959.GV19508@bombadil.infradead.org> <20190320122011.stuoqugpjdt3d7cd@d104.suse.de> <20190320122243.GX19508@bombadil.infradead.org> <20190320123658.GF13626@rapoport-lnx> <20190320125843.GY19508@bombadil.infradead.org> <20190321064029.GW18740@MiWiFi-R3L-srv> <20190321092138.GY18740@MiWiFi-R3L-srv> <3FFF0A5F-AD27-4F31-8ECF-3B72135CF560@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FFF0A5F-AD27-4F31-8ECF-3B72135CF560@oracle.com> 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 21-03-19 04:24:35, William Kucharski wrote: > > > > On Mar 21, 2019, at 3:21 AM, Baoquan He wrote: > > It appears as is so often the case that the usage has far outpaced the > documentation and -EEXIST may be the proper code to return. > > The correct answer here may be to modify the documentation to note the > additional semantic, though if the usage is solely within the kernel it > may be sufficient to explain its use in the header comment for the > routine (in this case sparse_add_one_section()). Is this really worth? It is a well known problem that errno codes are far from sufficient to describe error codes we need. Yet we are stuck with them more or less. I really do not see any point changing this particular path, nor spend a lot of time whether one inappropriate code is any better than another one. The code works as intended AFAICS. I would stick with all good rule of thumb. It works, do not touch it too much. I am sorry to be snarky but hasn't this generated way much more email traffic than it really deserves? A simply and trivial clean up in the beginning that was it, right? -- Michal Hocko SUSE Labs