Message ID | 20230627031431.29653-30-vishal.moola@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 B830AEB64DC for <linux-mm@archiver.kernel.org>; Tue, 27 Jun 2023 03:16:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 837038E0013; Mon, 26 Jun 2023 23:16:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7BF448E0002; Mon, 26 Jun 2023 23:16:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 612188E0013; Mon, 26 Jun 2023 23:16:13 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 455DC8E0002 for <linux-mm@kvack.org>; Mon, 26 Jun 2023 23:16:13 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 11EE11A082E for <linux-mm@kvack.org>; Tue, 27 Jun 2023 03:16:13 +0000 (UTC) X-FDA: 80947064226.21.33403AD Received: from mail-yw1-f170.google.com (mail-yw1-f170.google.com [209.85.128.170]) by imf20.hostedemail.com (Postfix) with ESMTP id 1CD691C0023 for <linux-mm@kvack.org>; Tue, 27 Jun 2023 03:16:09 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=eyYuDUlX; spf=pass (imf20.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.128.170 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=1687835770; 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=aC42rwWABf6gZRpo1lmXLesagCXZXwWss5DKNWFAOEGokeJcZoKvVgmRnazTFP/IZ4VexP NdTaXMjuKbpA933YW96YCSHM9RvkPbqWCOwJQNu1itBaHuWABm4T47CP73ZuOThguofi6R WlDdhf8waoz/Sn005QUHppCrV5wYPbI= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=eyYuDUlX; spf=pass (imf20.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.128.170 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=1687835770; a=rsa-sha256; cv=none; b=Vl1F4BFYUVM2aTweWqPbARYbewS21w0/WwOcYUg+7Tk3cO3QsBhDfF1zIbHyyoj1mG/Lcd ytVp3zCyLBUzajf7GcpyWWLTHFv+vdAnTaSQdBgnDYjRsH/z7kJ3DXFvcj6AMuaaMkmeyX vcUzgxVWyq6P7Ssr3sI0stV2EpQsxUw= Received: by mail-yw1-f170.google.com with SMTP id 00721157ae682-57045429f76so40113387b3.0 for <linux-mm@kvack.org>; Mon, 26 Jun 2023 20:16:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687835769; x=1690427769; 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=eyYuDUlXPMdgLVymoCPm6l0B5AkMkP0MJVgww2Dc7/3sqQmnGU1ku6H9CU98Kx8HDx 01E8lwPN+qvwNuBvO2TKM7cIgKQ3CJY1x5BttlhhMCAu/eXz9REbxcYgAP/6CQkWy6Cf lQ90mc5ZocMFbyDKOmgQ6JtaRafPtmT5vpmCcu1CHVchruI6mMlKmB0nAjhundO2FScF dwi9LCyq+7qGXz1usN+jVcsXjJuTQQ04p4sKanEFFQJoYolDJUzZRawaXCZwSYL33znl 4r4UGf7Bdp39+qapNSstfbw+OcAirA3yy9mzGZ+ruj3Aqj6H943hd4iO/NnOtCq31XtZ 136A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687835769; x=1690427769; 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=YYlHNNR/IGFWCbNP6OUn5EDKJ45T9Jkr5+7NbGcOt+QKIpl95SMwKub+yfKmx1Mf+U zxMGkzVJ5wyZdbyhU76jPoE/K8n0Q+bTAH0PCvrwAhKu//bf4diEKIblOtI5ztw62P/8 2yHmBn9Oqbwc49vW5JI9q7OtSaaMz5EnPYV8+5UR08bzPcMc2u6ayPSWA1FEZqg4ipFu Bmby4rMxORoSpyPzNrFg8yxodC++zGoDNNxd7VfJTjTSkRQknTR7fiGQWqTAvxCl8dJY kWA/6tluohgpjYM0YrKi6+vXsWXOKsJO61bPF3EAozP7YGt1MHh5Z4tOrhtQqQhlZknv yd1g== X-Gm-Message-State: AC+VfDw12xGKtlKY1cJIlnw/vTPg0//5sBuvB2EOHvfSTKGwzTLCXCno QhSoCHP3bOwOS4T+y02Q1fE= X-Google-Smtp-Source: ACHHUZ5BRaD177tE1K+/zidTaxecch2WxFQR5MI/tG/yJGMKk055pAnLHtqYXsbXJZWlLLkzghbGoA== X-Received: by 2002:a81:8684:0:b0:576:e4b6:9272 with SMTP id w126-20020a818684000000b00576e4b69272mr1982237ywf.30.1687835769172; Mon, 26 Jun 2023 20:16:09 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::16]) by smtp.googlemail.com with ESMTPSA id s4-20020a0dd004000000b0057399b3bd26sm1614798ywd.33.2023.06.26.20.16.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 20:16:08 -0700 (PDT) From: "Vishal Moola (Oracle)" <vishal.moola@gmail.com> To: Andrew Morton <akpm@linux-foundation.org>, Matthew Wilcox <willy@infradead.org> 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 <hughd@google.com>, "Vishal Moola (Oracle)" <vishal.moola@gmail.com>, Yoshinori Sato <ysato@users.sourceforge.jp>, Geert Uytterhoeven <geert+renesas@glider.be>, John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>, Mike Rapoport <rppt@kernel.org> Subject: [PATCH v6 29/33] sh: Convert pte_free_tlb() to use ptdescs Date: Mon, 26 Jun 2023 20:14:27 -0700 Message-Id: <20230627031431.29653-30-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230627031431.29653-1-vishal.moola@gmail.com> References: <20230627031431.29653-1-vishal.moola@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 1CD691C0023 X-Rspam-User: X-Stat-Signature: b7kcf9pcdnqy9pkgqjrrpfiqme7974ax X-Rspamd-Server: rspam01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CJ7BTpijRMIL2vwmG6AIZ/UoRw0L/5h82f6jvPvyqQkQLgjtFTO9jb+3jPDs4MRZXagPoauuZbP8y8p5b/kvhY4r2HD7qYON763F+O/lSbYc3W6DRvTDZTErsxudr+Qs9VKTaqCeD/uGq8RLLBSzJVyNeGU5INJoCfiVNVaQRNPXvy/pMlXdPhcCTaim9srjR49pvwEDkr94POW4b3v0a5BqYmucEhWhWMuJM2Jk7dT+d9Ds1XITJe45yupj4tFmAUg74kUqVsmpIF2NqbFQbUccAFfobP9JWdDfztbKEOPCOqVujCgqjX4G9COxSDt0yqkK7OktZYTm4Ph8QPETIIe3HzZyQv/o0j6Nay1esNxwijUpQ0fOLwMusxiJPWP4dAiUWNRTEdab+Gpe8GX7/431ueY48s3SZ1iI14v+AarvjD10k/YGb2YIvga4rMKV+4latMzAt4rY99BIuhe9X93EL9p9YpYGBB1Rj2xWg38Ckik/fKrSZbHRzg28HhExrRO7lBnuYP08FjT4Mkyv3rOC7Lw/CVLqPqmivf2KLEJNyoZrlYQtdjn7PVhWdsWC7QCmVitaEE4F1M/W6MZdfwGCOzMFg= 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: <linux-mm.kvack.org> |
Series |
Split ptdesc from struct page
|
expand
|
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 <linux/mm.h> #include <asm/page.h> #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 */