Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7562525yba; Thu, 2 May 2019 12:04:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYDNUndccUkr2PjHmL7pgcvNd1zVcQIuKtS2/ZMdOuB/3KWffRVH51VYSy98Cg5IPmF9J4 X-Received: by 2002:aa7:8383:: with SMTP id u3mr5832084pfm.245.1556823867863; Thu, 02 May 2019 12:04:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556823867; cv=none; d=google.com; s=arc-20160816; b=VoodZn408x5UfSlp+dho3Z5cMM1SXktZfmksgJBpZ5VvPII8adW/AURh1V6/jmxXwV fMbbVHvB5TroQ/AgDf2TNrfi7BZsrPqcw8qZ41TGV+11RGpAMaCElRLP7taG6pOBGTsc kDgS4EX9j6gL8JLZuYd7N8pMMAtVvC9pZYfZf2J/S3b0zxsliDlcMhEaJMhCSxy+B5nP vCLye+3BzQKnl8Zhktm0ECeiKuKR+n/wktpFy2SxZUV8bgkor0tiyPRzrJTjDqjfeCon vsWFpS6vhOyX4OvPC7W+MXplAurR6OU7+YYzW4NOoxX+wWiUn89HX17TK2VDSoUgmlIe 1/Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=N5vP4AkogQ4iAySrvubINU0ejgtxmv383VKMfJfN8uU=; b=TCCxOFZ3CcyAYSTsbk37+X3VDWe9tfcCnXxcKMoJzaCGRsQWq0JXLZ+k7r003WNU04 6w7S57d7OH1ptdXwJoefD+7P518RCMlpkBb+q3DsIlO97w18sZZ90qNL6+esD7mKcv7Z 3hPEnHJSDooT0/e1iTJ3Id3EJ94X3L/X6iGsjP0NjljI6gi2BgsfLh1gY27kMN/k3kes zB4Cv1ZuxZykHv9SYJukCKN4X6pQBv/TWiEPiwT/TUpKyLV1p03nO6AHw1g+HhLLg675 AKgqKGKP9Q6AHig4KKUhoIMFw/8tzJYIQVj3iiZ0Q1lhC7dzXp0r9a7KAPg09KRP5fa8 1HUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wavesemi.onmicrosoft.com header.s=selector1-wavecomp-com header.b=FGA90EGc; 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 f22si33638194pgf.227.2019.05.02.12.04.11; Thu, 02 May 2019 12:04:27 -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; dkim=pass header.i=@wavesemi.onmicrosoft.com header.s=selector1-wavecomp-com header.b=FGA90EGc; 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 S1726338AbfEBTDT (ORCPT + 99 others); Thu, 2 May 2019 15:03:19 -0400 Received: from mail-eopbgr770093.outbound.protection.outlook.com ([40.107.77.93]:13275 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726120AbfEBTDT (ORCPT ); Thu, 2 May 2019 15:03:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wavesemi.onmicrosoft.com; s=selector1-wavecomp-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=N5vP4AkogQ4iAySrvubINU0ejgtxmv383VKMfJfN8uU=; b=FGA90EGc7npOswhWXNdDBkBfgDW/YA/wBfpJCQnsBf1uiEWNICbqv2coEb6dq+1Y4hICqJ/nl2A2VwS/1ZUlMbldSFF6fWidwS8+avtmYwhLrkNREz5iMe6RkM6Tlq/OsbEaA56KDIXpnYm3xhcIZZ9CO5fMLLwwWKgv9G3slaE= Received: from MWHPR2201MB1277.namprd22.prod.outlook.com (10.174.162.17) by MWHPR2201MB1216.namprd22.prod.outlook.com (10.174.161.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1835.13; Thu, 2 May 2019 19:03:12 +0000 Received: from MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::b9d6:bf19:ec58:2765]) by MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::b9d6:bf19:ec58:2765%7]) with mapi id 15.20.1835.018; Thu, 2 May 2019 19:03:12 +0000 From: Paul Burton To: Mike Rapoport CC: Andrew Morton , Arnd Bergmann , Catalin Marinas , Geert Uytterhoeven , Greentime Hu , Guan Xuetao , Guo Ren , Helge Deller , Ley Foon Tan , Matthew Wilcox , Matt Turner , Michael Ellerman , Michal Hocko , Palmer Dabbelt , Richard Kuo , Richard Weinberger , Russell King , Sam Creasey , "x86@kernel.org" , "linux-alpha@vger.kernel.org" , "linux-arch@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-hexagon@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-m68k@lists.linux-m68k.org" , "linux-mips@vger.kernel.org" , "linux-parisc@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-riscv@lists.infradead.org" , "linux-um@lists.infradead.org" , "nios2-dev@lists.rocketboards.org" Subject: Re: [PATCH 01/15] asm-generic, x86: introduce generic pte_{alloc,free}_one[_kernel] Thread-Topic: [PATCH 01/15] asm-generic, x86: introduce generic pte_{alloc,free}_one[_kernel] Thread-Index: AQHVAPvLitxTe6gGvUam7UWTEvfeuaZYMWYA Date: Thu, 2 May 2019 19:03:11 +0000 Message-ID: <20190502190310.voenw3pwgpelmdgw@pburton-laptop> References: <1556810922-20248-1-git-send-email-rppt@linux.ibm.com> <1556810922-20248-2-git-send-email-rppt@linux.ibm.com> In-Reply-To: <1556810922-20248-2-git-send-email-rppt@linux.ibm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR01CA0064.prod.exchangelabs.com (2603:10b6:a03:94::41) To MWHPR2201MB1277.namprd22.prod.outlook.com (2603:10b6:301:24::17) user-agent: NeoMutt/20180716 authentication-results: spf=none (sender IP is ) smtp.mailfrom=pburton@wavecomp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [12.94.197.246] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5584fd04-cb54-4e5f-1234-08d6cf30d264 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(2017052603328)(7193020);SRVR:MWHPR2201MB1216; x-ms-traffictypediagnostic: MWHPR2201MB1216: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-forefront-prvs: 0025434D2D x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916004)(136003)(396003)(366004)(376002)(346002)(39840400004)(199004)(189003)(186003)(26005)(44832011)(6506007)(8936002)(256004)(3846002)(81166006)(446003)(486006)(11346002)(42882007)(102836004)(476003)(76176011)(14454004)(81156014)(478600001)(6246003)(99286004)(229853002)(25786009)(6436002)(6486002)(6116002)(8676002)(7406005)(7416002)(5660300002)(4326008)(305945005)(6916009)(54906003)(58126008)(7736002)(53936002)(386003)(66066001)(6512007)(52116002)(64756008)(66446008)(1076003)(4744005)(71190400001)(2906002)(33716001)(66946007)(68736007)(66556008)(66476007)(316002)(73956011)(71200400001)(9686003)(41533002)(142933001);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR2201MB1216;H:MWHPR2201MB1277.namprd22.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: wavecomp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: N7pT2D98deMj6gdm9WFDpL/BCReV8Dm4aZB8yOnNr59VPnbj8T7nWBk4fHyWTOq/nmQqMsk83NqSPJJj8qUO7BE6KcNSyMoVbL/0lMquZu7SRYLvDnMKwUxj1JVI/AaUgM/9WT/5ybmz43VEdmyDQv2ljwflxCkVRDT/Bsg90HjOr+I96N/C54k5ibt/TQI8bjY0DvFTHZZRKLHscLDWQrRmiviTh8DROTiodXO6VyPG4wGmPWVgfi+k87s15NnPE+sue9LVHDnHyHDdrW/ci/n6q0a4v9SemaPZBbDVFX9ZHkeAosVjMqd10ZuFYJguVHP31ldjeAcX5ARFt0UfwVozYTru4XPmC1f8l8kWNHlop4thdTqeXvnreCI4Z784VquKXPUdBCVprKJVKSShs+9KhxfovWtW5UkuYQzD1dk= Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: mips.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5584fd04-cb54-4e5f-1234-08d6cf30d264 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 May 2019 19:03:12.0171 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 463607d3-1db3-40a0-8a29-970c56230104 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR2201MB1216 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mike, On Thu, May 02, 2019 at 06:28:28PM +0300, Mike Rapoport wrote: > +/** > + * pte_free_kernel - free PTE-level user page table page > + * @mm: the mm_struct of the current context > + * @pte_page: the `struct page` representing the page table > + */ > +static inline void pte_free(struct mm_struct *mm, struct page *pte_page) > +{ > + pgtable_page_dtor(pte_page); > + __free_page(pte_page); > +} Nit: the comment names the wrong function (s/pte_free_kernel/pte_free/). Thanks, Paul