From patchwork Tue Jul 25 04:20:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vishal Moola X-Patchwork-Id: 13325740 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1A4B5EB64DD for ; Tue, 25 Jul 2023 04:22:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7655290000B; Tue, 25 Jul 2023 00:22:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 715B1900002; Tue, 25 Jul 2023 00:22:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 58EBC90000B; Tue, 25 Jul 2023 00:22:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 45393900002 for ; Tue, 25 Jul 2023 00:22:07 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 1A22C1A04D0 for ; Tue, 25 Jul 2023 04:22:07 +0000 (UTC) X-FDA: 81048836694.20.3A149D1 Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) by imf14.hostedemail.com (Postfix) with ESMTP id 512F5100011 for ; Tue, 25 Jul 2023 04:22:05 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=GBQqKOXR; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf14.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.172 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1690258925; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=NG13BwzmmAIpXpcduEwvRHFbS3iQhU18W2JpKLteVDY=; b=NSKdYjRJgpZc0/XpZnnRENNaL5blDbQUTzQqLGWddVa8tLcsq7O9Hld2wQq1x/smi/rRo1 vEz4qtLoiXmLduvQkFXdi8IDU5aSu4RUexUCybJ/3mNF5UHWvN8wedHsAx1Ud1DGk5dZkb eil3rWeprE9k3ZzqfUgc1eSsTJyJQmg= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=GBQqKOXR; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf14.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.172 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690258925; a=rsa-sha256; cv=none; b=mOp7hADDWgZjnxwWZeeCRsd42dNNIAGV4XGqMYbXcVQGu4YoB39laO36P/GqM2YgAt5eTP oXN2sIqiHHe5X43tECdcyugnOYbXRgTjYizBifrgYJFacO/vQNRP5DNcCUlqJqo8lQuS+n 1rnxWwkb1Z6wZiuhgl0NIhaaIHNmKFg= Received: by mail-yb1-f172.google.com with SMTP id 3f1490d57ef6-c4cb4919bb9so5540835276.3 for ; Mon, 24 Jul 2023 21:22:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690258924; x=1690863724; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NG13BwzmmAIpXpcduEwvRHFbS3iQhU18W2JpKLteVDY=; b=GBQqKOXR4MY0Ps6Ytzn9QjLc5kcnNARqYVMOSqCl4nxxP5zueTINjr7iMbjZhk8uU1 uF+ZNdDLWemlb8QXVTn60jLorPF4KaxuajyPq7XQ8ZCUpgrsfyxcNU4aZsjJHBdfgv4V f3SehFOrdMCWYaV3GNfOxXZlwwtfQps2pLwSnw0r1MZbny4VXC0cZl+5ECg/uwswSkJJ 2spe5/EA1yI0VqTuQ1Drr9GEQcMwkhM/FKbElCEbuZdJkSdi81Zbahgosic5IMYJMWsY zz7YF2FVGFBOrfl6ZnWHbV39qhmx668oKEAvnRRKMjMLLqABK50UfsT2Oc13y2cvxYxd xuhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690258924; x=1690863724; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NG13BwzmmAIpXpcduEwvRHFbS3iQhU18W2JpKLteVDY=; b=EXpfK4s9dtKgoB2Y+4rQhVIuq3V22p7ica+wAI/46TisWLvwA901thhRARyG9hxykk tCQWhej1ehcAYm2FsMQfhlnB+PrythQiUu/w96phglH8zznd0vQYvBWo+teltDT5Q215 PU1xXjNDGcbAz2x3O1/cIp3o9AmoRHV+3cLHIkHd8rD+/NSLqhqOu0SB5Jg1PaqenWI2 fsSMYyoCaRsojIhBFXhzTUKatJEx+TKFiIwI3bNo84lnzYjIeIlxw2YNmD8sASJlSJEk zM8Is+amjbt0kjyqV5eaQaEBhQxikFIqe3UAzb4lrjszFj98QQEMHNySw5ftSQAWLfNB Qi+w== X-Gm-Message-State: ABy/qLZsRmCGRqnqhKFah3HEzqcttdWMJnnMHFt121Kp4ASUfW6RTLs/ Ik8Rf7RWPs6BSGLQ8k1HZNU= X-Google-Smtp-Source: APBJJlFIEKBO4FnrV/9ajkbTKUo/vEdRCYW7kk6X3z3g19puIv3mx6us1kMtRHRFLnY2I/2ODsKhEw== X-Received: by 2002:a25:2309:0:b0:d0d:2d82:7a27 with SMTP id j9-20020a252309000000b00d0d2d827a27mr4389099ybj.13.1690258924402; Mon, 24 Jul 2023 21:22:04 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::16]) by smtp.googlemail.com with ESMTPSA id h9-20020a25b189000000b00d0db687ef48sm1175540ybj.61.2023.07.24.21.22.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 21:22:04 -0700 (PDT) From: "Vishal Moola (Oracle)" To: Andrew Morton , Matthew Wilcox Cc: linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, xen-devel@lists.xenproject.org, kvm@vger.kernel.org, Hugh Dickins , "Vishal Moola (Oracle)" , Geert Uytterhoeven , John Paul Adrian Glaubitz , Mike Rapoport Subject: [PATCH mm-unstable v7 27/31] sh: Convert pte_free_tlb() to use ptdescs Date: Mon, 24 Jul 2023 21:20:47 -0700 Message-Id: <20230725042051.36691-28-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230725042051.36691-1-vishal.moola@gmail.com> References: <20230725042051.36691-1-vishal.moola@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 512F5100011 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: n6nyunrnkpdhs8y7t6q7uccz31qo7h8p X-HE-Tag: 1690258925-176478 X-HE-Meta: U2FsdGVkX1/y0GrgR2AC+0leHvoumPs0/C+DkNvZmuRRkVL0oM22AaGMRQA0B52jh7sOAdttmwA9PiR6G0eOCu2qSNgqW2vNia+sHsOu3mTYlcQvgN2glX2CYSrp7IRcDGdxpXS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n4H6gyL/cYH6AoEjIIfDYN+6N1QCOezRNWQqkr/C2QZoa0u2CXjCSEAWiQDS/SFihO1KxzaQImmzVOYJRljHjw8hyS4c13SPdq7l7GqBUWfCcX2K17Jb/nIXltLZvLXES84gCzoXi/DgIwfSaL8iAqwq4yhQeswPiUp8BXgWKsGcAdMcRrJy4JdBz2kUyWuXMKakX4nXzOu5UpPlaJiS8x4LxBaYrl/ssg3JASkZfXsHKOuEBTgzbx3prCbjFgP8ShAdKN6gdOA2TWJZFY+6RR/Y24kCAmZGJBXWHGGtf1zXr5tMUXgdtttyMgMnQiIMOy6JPiYxXlmviJFnT+1VA1mWnolIAb2zOB5WDAvcEhNM/msp3/tNlAlig1dOM5N3ncIZAvo15uIDLC6/6OQI2Y//am54AzKwxttXd1yTSmpn7QvLAcw= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Part of the conversions to replace pgtable constructor/destructors with ptdesc equivalents. Also cleans up some spacing issues. Signed-off-by: Vishal Moola (Oracle) Reviewed-by: Geert Uytterhoeven Acked-by: John Paul Adrian Glaubitz Acked-by: Mike Rapoport (IBM) --- arch/sh/include/asm/pgalloc.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/sh/include/asm/pgalloc.h b/arch/sh/include/asm/pgalloc.h index a9e98233c4d4..5d8577ab1591 100644 --- a/arch/sh/include/asm/pgalloc.h +++ b/arch/sh/include/asm/pgalloc.h @@ -2,6 +2,7 @@ #ifndef __ASM_SH_PGALLOC_H #define __ASM_SH_PGALLOC_H +#include #include #define __HAVE_ARCH_PMD_ALLOC_ONE @@ -31,10 +32,10 @@ static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, set_pmd(pmd, __pmd((unsigned long)page_address(pte))); } -#define __pte_free_tlb(tlb,pte,addr) \ -do { \ - pgtable_pte_page_dtor(pte); \ - tlb_remove_page((tlb), (pte)); \ +#define __pte_free_tlb(tlb, pte, addr) \ +do { \ + pagetable_pte_dtor(page_ptdesc(pte)); \ + tlb_remove_page_ptdesc((tlb), (page_ptdesc(pte))); \ } while (0) #endif /* __ASM_SH_PGALLOC_H */