Message ID | 20230807230513.102486-28-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 A9B82C10F19 for <linux-mm@archiver.kernel.org>; Mon, 7 Aug 2023 23:06:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8B962940020; Mon, 7 Aug 2023 19:06:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7C891940008; Mon, 7 Aug 2023 19:06:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 61A54940020; Mon, 7 Aug 2023 19:06:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 48798940008 for <linux-mm@kvack.org>; Mon, 7 Aug 2023 19:06:17 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 1404F1402D8 for <linux-mm@kvack.org>; Mon, 7 Aug 2023 23:06:17 +0000 (UTC) X-FDA: 81098843994.15.21C41FC Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com [209.85.219.180]) by imf25.hostedemail.com (Postfix) with ESMTP id 38271A0011 for <linux-mm@kvack.org>; Mon, 7 Aug 2023 23:06:14 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=sRCgndxF; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf25.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.180 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=1691449575; 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=SuJFa6mAGFwbCAvFBsdWEeQAHJIQ94yaq1s2El5pO5M=; b=C3xyzMu7AKtDJTONiqKceQGqb2+kqWgsTIDIpwqKwgR6FnTZqYd3kTANKlME4obWhwMCwk 7kTze6Ngm2VEd5Sg0KUumFKgqdOYI640iScdocP1bvfUmg0fNCx4tTEcJ8/TSReVcUOSQt +tyCCZrnxc+ik8BDjKh/k2Qqx7vpn3w= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=sRCgndxF; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf25.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.180 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691449575; a=rsa-sha256; cv=none; b=cd+D7+594zILqQ0sAqnd0LuZ7r7S+0uaClEfNLfAJP3iPKOvwmV0q+4eX9bsOkPkEpPYPC av1BMvX4WtdWWdh1JA1EiVwqvMJWNJCaic9iiI2Qejqx3fDAQIny0D4uQ/a2KOF1NNY17x Z4hpZhT/eZsVQGdQpfdGegvs2vWVxIc= Received: by mail-yb1-f180.google.com with SMTP id 3f1490d57ef6-d35e565071aso5316993276.2 for <linux-mm@kvack.org>; Mon, 07 Aug 2023 16:06:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691449574; x=1692054374; 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=SuJFa6mAGFwbCAvFBsdWEeQAHJIQ94yaq1s2El5pO5M=; b=sRCgndxFhKIflL3dRUOciVixuY3um2CsOH9mqCT4RfpcBNQLoC/2xIlVP2BC0LrRXg d0Mfnrp8G1Gq70+B6oCgBqzc+N7zHH9xY0+av47l7B8CO6Tt+n9pMVSoswf5Jzx8/yzy NzCNQAVK/Lkid61qiT1qq4e/dSW3T9N7fVh6BXy/whyNG/50NiRv4160ULtNDt7ZAJ8u ZEinV12wAdQdY0FHQSDiTfa7/P6pGvAR+Q1UWR0j31w4+0ktiAC1WT1q41QbYEtl/+hQ cKdjsvUfk2w2q52f0mVtR4dPNDq1UHAYwd2r0wZzmsP36I/aPnhCen/ej73PJ82E0WBs UQzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691449574; x=1692054374; 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=SuJFa6mAGFwbCAvFBsdWEeQAHJIQ94yaq1s2El5pO5M=; b=aFCCFGfr/ZLU3YmVMdsomgkDlNi2d92fK2c+6OOhZurce3O4OA5EWCyAX189vBQWYl GffYnkrAsNEodeiQxdoxIAz+bJFKldcvGpsf9D05lNVuN69KIwVK9BaNobpifAKzeBoc Kvr4R64AkKPNOKE24I/c1VSgNr+BlMSNUpcoydr4JlTuCMkxhKnfPi6mcWbeX32O2MIu NrIWw3rvAeTzaI7VecB/ofcyCVWFhHDT1p352xOSf3+d7E0TMHBPejCXN3kimnqh+5nC CuVZ7PrzqlbEVycwkUeFI7PDSbT1FFbnlNHjXA5YcFLTb398ydnw5VOZPwzVReomo1ME 3VDw== X-Gm-Message-State: AOJu0Yz8kQgpmz2ApaxxM7WUkpvquaPnf422zuIEybYBaIReagWleoCs 1iuDCE6Syaj5DIYeN25O+x4= X-Google-Smtp-Source: AGHT+IHDPhUgl52q/fREvy7LWtCvyksQLzlkWI4tWrtb//A8NgqAG/s+XL1YOkSBACmJ6FF0msS3mA== X-Received: by 2002:a25:4081:0:b0:d4c:82ff:7bde with SMTP id n123-20020a254081000000b00d4c82ff7bdemr6684894yba.63.1691449574044; Mon, 07 Aug 2023 16:06:14 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::16]) by smtp.googlemail.com with ESMTPSA id d190-20020a25cdc7000000b00d3596aca5bcsm2545203ybf.34.2023.08.07.16.06.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 16:06:13 -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 mm-unstable v9 27/31] sh: Convert pte_free_tlb() to use ptdescs Date: Mon, 7 Aug 2023 16:05:09 -0700 Message-Id: <20230807230513.102486-28-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230807230513.102486-1-vishal.moola@gmail.com> References: <20230807230513.102486-1-vishal.moola@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Stat-Signature: ri1deiuts668x6y3g7hptjd7taxezero X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: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7mnZkQzpeKjWkAY7vp0cAgwlUvMgq1V0a0MFCMN3I8zYFTZhq99Bx0AEkrGIRo+e0olvfv8bh3hwgP20mmNWsucocvGvQXC6iyezVvcFu61Ji9bgsVKOSq0vgc6SSlD1kIVDJ2mfgqvpNCQ61wmYcXsSx9bBPgqrqFAPN9UEghRSOtPd0qPnCbxFlJUZZQK/WvnoWZ+Nw29LUHY+fg24eNbxZtjs7A35LzuwcntNBJO8A3Dw+UFhzHvQc1Tt5M3EP5uqP8g6pw6j298GVvS8RI9imaaRofenBJtpApoAC0KI+Aoglsg+/5WVTxO4YZuClJulKioKneTrhQbX/Qquf5m9rBIn2eDrmzmj79mVszm3wNaGaLqyPzCuhDIYGxrKVXJpW6iK7415bfsu4uIP8JoqYXq7w9ouPqv7D542cVTZ2foi3Vm60goLfnh7cChIyTRBYcWrX8CvEyIDy5Cnk6NXaDWAjmZ10AQr93Tckdyhb6Am1yYZwEPhipW0fRGndeI8oXJJvhTx6wJjqbKGUN6khdCJeDYVSFbfs92IGIVUZPukLSfxZQ3kBW3yVliapfoxobVSYw17pj9/FOeavnNY5skUfI6rAk9sizmEeXMQ== 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 */