From patchwork Mon May 1 19:28:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vishal Moola X-Patchwork-Id: 13228031 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 74DF9C7EE2C for ; Mon, 1 May 2023 19:29:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8043128001C; Mon, 1 May 2023 15:29:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 78D4B280002; Mon, 1 May 2023 15:29:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 604B728001C; Mon, 1 May 2023 15:29:21 -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 4EAE2280002 for ; Mon, 1 May 2023 15:29:21 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 27F1C120658 for ; Mon, 1 May 2023 19:29:21 +0000 (UTC) X-FDA: 80742674922.15.6AF7058 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by imf04.hostedemail.com (Postfix) with ESMTP id 5536B40011 for ; Mon, 1 May 2023 19:29:19 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=AK+jJQIn; spf=pass (imf04.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.210.177 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1682969359; a=rsa-sha256; cv=none; b=G7d8W0OMax3mKNi+JH8lCwHE/G2nbt6W6xvwfxYz87Cgx2/iw6rXTwBjfrxAEsDGSItEtI S9tdvQ/Q91zCInXw1FVii0BieUTceXcs/YpPLG4OLGaZYkdL0aYWWpX60j2YU7qSqDpMPc MKP9UmR4O+dOX3Q+1in4G/RcGyEBLmU= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=AK+jJQIn; spf=pass (imf04.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.210.177 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1682969359; 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=5aCjEZJk/he0B507v8WHbAo+ayyw9u0whNe5hSh1Qc0=; b=5vkL7xZsFSjqs8PldkFfaZI6qe2v9xO5EOpzgBvKKSXE6e5h8iMMZZoH+CODDDCQT13ftV 0GOygkYrCwLlHYirCuoSOttjfHfZjxRl0TjpPg4aGoShi53VvmjOxTZbm6i07CSJI88ilb xp24u63wu7iYby0pSyEm1VM6goc4Jwc= Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-64115e652eeso29041936b3a.0 for ; Mon, 01 May 2023 12:29:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682969358; x=1685561358; 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=5aCjEZJk/he0B507v8WHbAo+ayyw9u0whNe5hSh1Qc0=; b=AK+jJQIndwyipvZ3j74RRrDCnGWb55RfRTFZCAj1QjfEP6JtcEnkxab8VHfUxlnJqD nzyDIYAX6jvOrQqc9g/TswPCkcqNA0B0b+SVKLMEmNApHkelPozzZarkoTrP2UobldQU E6NqDV1CfueV3wQaPICMNftiMflroUHircwtbGv3hyeRwqO/KqZCxi3BNAP0dk8lYID7 5OwqBACQpi+nvrf0goZMdOfhVuRwRiXsUHvkFH+vRl0eIOaoeix6IqEc2ZJsYZWlONhr qoO4S8rXijotpMJHxa1FWYbjKdY7R5WGEGDzLNmBq3rOIwjAHcvHuIBKVpOdfgv+tSJ1 RDOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682969358; x=1685561358; 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=5aCjEZJk/he0B507v8WHbAo+ayyw9u0whNe5hSh1Qc0=; b=dhNlkoQOduav1dLoGnaFUkPWmFfTsTxnlDsW179w+Ae1LIJdMCdYiyAYFVbHpFdu3T n7t7OD7f5KGI2BhjN7K/O+fzqCdtV5U0+nmSWc2Xo1ev6zB6Kj1gMmP5ky6t3hkelyXL sq+6OaFK5q98CTLbsrIiSM+W0LjwwozQCAUhWb3Soe15Z1svr2Io0DVDCIZlz85tzzab wf+vVptDEmOWUUBboQNapLbih7lFw27TsqYKCSqH0+Gy3i2kdVdRIBc5CFiSg6T0z51t 7mCL4IMKazyTKXXSbcMI5SMSEEGqQo9yLf6neobIT93Ov07SFWgneQQXL4fgeEqP3zNz uHXg== X-Gm-Message-State: AC+VfDwNmyCxiG/HX97WpFwmHM6nXZWWRTcrlD6QNA5q5cDMo3wjZu// 52MhIS4Dvgzq1+eKWbWkou0= X-Google-Smtp-Source: ACHHUZ6t8R71ld5pjw9YJiJ63m1PjvmCLBjw2ONvK02V0vikRtqecj56I+goZm4GypngOeaNmv5J/w== X-Received: by 2002:a17:903:2307:b0:19a:96ea:3850 with SMTP id d7-20020a170903230700b0019a96ea3850mr18111173plh.17.1682969358236; Mon, 01 May 2023 12:29:18 -0700 (PDT) Received: from fedora.hsd1.ca.comcast.net ([2601:644:937f:7f20::9a2c]) by smtp.googlemail.com with ESMTPSA id u8-20020a170902bf4800b0019c13d032d8sm18175622pls.253.2023.05.01.12.29.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 12:29:17 -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, "Vishal Moola (Oracle)" , Yoshinori Sato Subject: [PATCH v2 30/34] sh: Convert pte_free_tlb() to use ptdescs Date: Mon, 1 May 2023 12:28:25 -0700 Message-Id: <20230501192829.17086-31-vishal.moola@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230501192829.17086-1-vishal.moola@gmail.com> References: <20230501192829.17086-1-vishal.moola@gmail.com> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: 5536B40011 X-Rspamd-Server: rspam01 X-Stat-Signature: cy6uc4phpkdw9scnfmt8csbf76bm9w3r X-HE-Tag: 1682969359-671407 X-HE-Meta: U2FsdGVkX1+SmMFgnU3kfmA1qIDbpzL7SVcmiRCzuBpRlCVJ6ApEtwDDTM6YCfnAB7VTwqMRS9tOgZeMC41IKZcibSJtGnb5hVJ8/1ByiCrgjTMOO9byy8ASzthNf+L8gtF2v+VojgdTt/De/4yVvWq3U0jQlWYz8buIKf+oJv6EU4OPnufxK68ZdtSfX3IDkbTZu/nOkB+XN20hxR9bJMe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g4Dkil4YYxHuvTw2+xkZO+sIabIFEumqMDXUVED/8VMnSpG8sey7Nsgc0jMgPfgKQA1QH/E8QGsXTWnrUkNef9VZN4eKp2i5U6nGRp9zmYqUecJZwYRAbIfwvvqbT2aQMhq7sx2CAeAq117tvrLLNeVnNZnl5PO6Nst18x+WaAVdBres0+Vj/YjOlZSyrlEPi3jrwDnYFpyQOVwiVJBkvq/Om32YB9IPaDB13oKO+LmuMqgQjdRIbrawbvATOKVM81xnu9dhRkfqHPneImnEeYJ+S6qDA= 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) --- 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..ce2ba99dbd84 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 { \ + ptdesc_pte_dtor(page_ptdesc(pte)); \ + tlb_remove_page_ptdesc((tlb), (page_ptdesc(pte))); \ } while (0) #endif /* __ASM_SH_PGALLOC_H */