Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3676947pxv; Mon, 26 Jul 2021 09:12:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySwpYq+mub8mzz2DL13Bv3lBA0KmNwGR2i/DcLd8BLjLFHpwAijPfUUFrB8Cs65fjhHGOC X-Received: by 2002:a17:907:e87:: with SMTP id ho7mr17865788ejc.184.1627315945510; Mon, 26 Jul 2021 09:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627315945; cv=none; d=google.com; s=arc-20160816; b=Ackf6RQgdt3S0Ol4pqegxilb8AyFIViFu+tYMD5FnJZchU6tYqeJ8bpQoy580gJZbh KW5VVAlYcSI7DZUG/TuIEZ0dLG/Xn3BRGPyB8L27HTOLZSC7t3MuitcbaHGXo0KUJNPb 94jqx1U3HngRB+z/UGR35OdzyYj6800WTnloHLsWDlpFv8dsfRDlWJ/QYyiwDNx6MJSJ teQNDWY0toFnNSPIb6aIWUGm43L6wD5yHtcJBR4y7RNEpuh2ifZecJL/RqWgqFjnijfV 6k0935PPLtPn9Lhe7jtoIEtNJ2/4hiJGN57pgEgDHSKYDJFDxC/CUTc/mQA54MjwUCzu oiKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=o+J0CSvfizv03bBxwNwPWVhwMfjoxkX8VKF+OjcgqmY=; b=zedLvg9RWSC+T34tSSaU/whv62wWKow5DGwPKK5DrEHYn5jTFZ2vo/kQzJ86GtMe6g IJ6MDvukY7YI2YjtAJzq6wDV7yeugPWIVPZjmsVgkN00jvhFfKoF19S4kcZBXYOxfZRG KUf6fmwsR0SisiubvvQcHvO7LKNpuqP3B9dRjb1XNcIFoz9KZGtCoabHZPAVR3Tue0x9 cwrDsGvxPcOL/0naf0zuzgZcob9eYmjRHcssmgnCEtiS7sU32u0fBY3Q7skZVgThgLq8 Kq71KWeI/6psIpVLjYgzv/PpaXR++4ia6F4PCa7E/pnvZj+SedGQLWvlsHR3kN4gHeXX t3vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="mF/MG0tX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s4si279711eji.269.2021.07.26.09.12.01; Mon, 26 Jul 2021 09:12:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="mF/MG0tX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231696AbhGZPaN (ORCPT + 99 others); Mon, 26 Jul 2021 11:30:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:57276 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236543AbhGZPRQ (ORCPT ); Mon, 26 Jul 2021 11:17:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B0AA160F38; Mon, 26 Jul 2021 15:57:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627315064; bh=StVdaq8NiJLj5NQcr12LUB5lPcbPrWwAgzhVmijn5RI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mF/MG0tXkAiu9tqViSqvNmnfQrcYWKIMKMKlRvdOAvHbsPwVcMiEzRVprPDY0gmhE gwLS6DrI8vmdrUpZIdW9lTgjnDumS5mx/Y1EBaUcXjxfLDsxDTeRteI5eranHO8WVP 1g9UrtXUFlMUGiPah5Vu+LUZqRZVxu58i7byxcdk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Huang Pei Subject: [PATCH 5.4 069/108] [PATCH] Revert "MIPS: add PMD table accounting into MIPSpmd_alloc_one" Date: Mon, 26 Jul 2021 17:39:10 +0200 Message-Id: <20210726153833.905513693@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210726153831.696295003@linuxfoundation.org> References: <20210726153831.696295003@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Huang Pei This reverts commit 002d8b395fa1c0679fc3c3e68873de6c1cc300a2 which is commit ed914d48b6a1040d1039d371b56273d422c0081e upstream. Commit b2b29d6d011944 (mm: account PMD tables like PTE tables) is introduced between v5.9 and v5.10, so this fix (commit 002d8b395fa1) should NOT apply to any pre-5.10 branch. Signed-off-by: Huang Pei Signed-off-by: Greg Kroah-Hartman --- arch/mips/include/asm/pgalloc.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) --- a/arch/mips/include/asm/pgalloc.h +++ b/arch/mips/include/asm/pgalloc.h @@ -62,15 +62,11 @@ do { \ static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) { - pmd_t *pmd = NULL; - struct page *pg; + pmd_t *pmd; - pg = alloc_pages(GFP_KERNEL | __GFP_ACCOUNT, PMD_ORDER); - if (pg) { - pgtable_pmd_page_ctor(pg); - pmd = (pmd_t *)page_address(pg); + pmd = (pmd_t *) __get_free_pages(GFP_KERNEL, PMD_ORDER); + if (pmd) pmd_init((unsigned long)pmd, (unsigned long)invalid_pte_table); - } return pmd; }