Received: by 10.223.185.116 with SMTP id b49csp126635wrg; Thu, 8 Mar 2018 14:08:35 -0800 (PST) X-Google-Smtp-Source: AG47ELuEj/vNOAQNXA/eP1x2wx3tyyd3ClVUqdVPA//WufxZWSjTrvsf68Gi4SGB1DQr6dCpmbfC X-Received: by 10.98.85.197 with SMTP id j188mr27523083pfb.86.1520546915767; Thu, 08 Mar 2018 14:08:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520546915; cv=none; d=google.com; s=arc-20160816; b=atfH9PIVsQ1MPNVG/3teEMl9lUnNeJUgu5nNnzDHiy4a6MIDsDJ+ObvuEZ/1UExCKA S8+2oXQZKDtAmiYeTgvQWnir/mFnioP2PB0X1GqP0HA6/b1zZxJdorwt1YsO318f6a4D wAhV+KxVRetM2aovubIE7xSESG7ucrHAVOHJShXm3aCig16/aEQewMhd1ysk2Dcqatoo gwpOZeDpEpywhHl7C+aKXSXn6ZbJ7BfbBRujKIw417Y/e0mt0ZgBW9jnoK2+NH60UeJp jqXWL/SvpPcdT9xB8zg17Gw7VPdTGDxlY9HuZZslMHiGa1hqmJUzMejfE8wo2NdhxZcp aRiA== 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:dkim-signature:arc-authentication-results; bh=dCpHtYB9XMz7OhBHimqyCtuj8cERATy5Pd8jnanMPqo=; b=R1jO2oiaIhzPveuemG9winU1owNDKa84EUDWGPSYMMMH12PrkY2gEkLCRYYFi43TxQ fDqsnk6v3MwOynE3Nx0bGAbjc3LfuXGB68ma8hOjzlRGx6ybawLrrTHAGkmnudYy2sFF J6A+O3Tv/AFjIn3EcB7OuwY0EGSTTkev/W3fBKbZXq4bBTn9vkvp3rxFqK+/B+6JkgiR E2FxfHZlANU/74mKy4mlgTZAC9mHR9myBJw0uo3cfvxS0HKTtFkoAyVKbA2RmUsVcf7O 23UDu89uynJBi4+E06LU8dPSO38A7tHGyU1ATkawp64a7vBINfskI4RDx0h1EoY6Jrqv eeAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=kof2zST/; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 15-v6si15628183pld.618.2018.03.08.14.08.21; Thu, 08 Mar 2018 14:08:35 -0800 (PST) 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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=kof2zST/; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751145AbeCHWHL (ORCPT + 99 others); Thu, 8 Mar 2018 17:07:11 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:36612 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750947AbeCHWHK (ORCPT ); Thu, 8 Mar 2018 17:07:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=dCpHtYB9XMz7OhBHimqyCtuj8cERATy5Pd8jnanMPqo=; b=kof2zST/PTjPiKZrm/VSdeIa7 g6jI7oWUq835xkk/Y02/K2hsq+mvvhZFtC6lxuxlZqvYn0LcXUyuV3YERGxMawAOAU75UQmULR8pc OGZkFP4C9iAEGafWK0SzvpeH1Xv7gWZPCE6/OC3MTaU/INo1unnlapQ/Mh45/YCwP6SgnxRtIITzK dS6Ki8UpGBhOU2W5AUSuCHeYzj2YhRmFeEgADYrRkD1d4M3w50VZ4XMjzGHOmXAFSNVuyYwOMUVWh /BVR7+AsihhA7gU3FfyxzXOJGbOP7kXWyAhALH52hmQk3UxO5KJ9r4Jzlug9GNyB4jn8pkN3IK8Bn xrjsTaPfg==; Received: from willy by bombadil.infradead.org with local (Exim 4.89 #1 (Red Hat Linux)) id 1eu3gq-0001NK-Vu; Thu, 08 Mar 2018 22:07:08 +0000 Date: Thu, 8 Mar 2018 14:07:08 -0800 From: Matthew Wilcox To: "Kani, Toshi" Cc: "linux-kernel@vger.kernel.org" , "bp@suse.de" , "tglx@linutronix.de" , "guohanjun@huawei.com" , "wxf.wang@hisilicon.com" , "linux-mm@kvack.org" , "x86@kernel.org" , "akpm@linux-foundation.org" , "hpa@zytor.com" , "catalin.marinas@arm.com" , "mingo@redhat.com" , "will.deacon@arm.com" , "Hocko, Michal" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH 1/2] mm/vmalloc: Add interfaces to free unused page table Message-ID: <20180308220708.GA29073@bombadil.infradead.org> References: <20180307183227.17983-1-toshi.kani@hpe.com> <20180307183227.17983-2-toshi.kani@hpe.com> <20180308040016.GB9082@bombadil.infradead.org> <1520527285.2693.56.camel@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1520527285.2693.56.camel@hpe.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 08, 2018 at 03:56:30PM +0000, Kani, Toshi wrote: > On Wed, 2018-03-07 at 20:00 -0800, Matthew Wilcox wrote: > > On Wed, Mar 07, 2018 at 11:32:26AM -0700, Toshi Kani wrote: > > > +/** > > > + * pud_free_pmd_page - clear pud entry and free pmd page > > > + * > > > + * Returns 1 on success and 0 on failure (pud not cleared). > > > + */ > > > +int pud_free_pmd_page(pud_t *pud) > > > +{ > > > + return pud_none(*pud); > > > +} > > > > Wouldn't it be clearer if you returned 'bool' instead of 'int' here? > > I thought about it and decided to use 'int' since all other pud/pmd/pte > interfaces, such as pud_none() above, use 'int'. These interfaces were introduced before we had bool ... I suspect nobody's taken the time to go through and convert them all.