Message ID | 20230622205745.79707-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 2F457EB64DA for <linux-mm@archiver.kernel.org>; Thu, 22 Jun 2023 20:59:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C79B08D001E; Thu, 22 Jun 2023 16:58:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BB3D48D0001; Thu, 22 Jun 2023 16:58:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A06628D001E; Thu, 22 Jun 2023 16:58:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 91B8E8D0001 for <linux-mm@kvack.org>; Thu, 22 Jun 2023 16:58:59 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 5FE6C1A046B for <linux-mm@kvack.org>; Thu, 22 Jun 2023 20:58:59 +0000 (UTC) X-FDA: 80931598398.25.9BE5A2B Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) by imf01.hostedemail.com (Postfix) with ESMTP id 73D1240002 for <linux-mm@kvack.org>; Thu, 22 Jun 2023 20:58:57 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=bI7F5jd8; spf=pass (imf01.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.222.179 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=1687467537; 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=Zv+9LHkd9WhbaCTbxTwpFdbbYsnC25GH3fuxhT9+Fn8UA3L3qLQxMpxLDDe+0x0yRdDc0w 4eyzPhGbeti+V7vXpf/EA1juw39wZFr5i8LgFSmGwzklJasA1KrokqqqHfWHKPGcF0+uAS z5oUOveRw20Qeq/rG5jmtCIR9UiB9aM= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1687467537; a=rsa-sha256; cv=none; b=NYpOUhSGtl4agSJFNVYmAN0CTBIHjlB+nUIPO4IcJ5iTGNWk9TlPJ2NTlhewhHCFLs+RXV p9vGMPaH1ITghmQDqqoqzTEmqA8DFjuEDc2vfK1syjOKMgvWqkUhnk1Q1armhiKGPja1qf PGTZf3tDXESAW4y/1K+h+Ce45BUoMYw= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=bI7F5jd8; spf=pass (imf01.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.222.179 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-qk1-f179.google.com with SMTP id af79cd13be357-76244657caeso578996185a.0 for <linux-mm@kvack.org>; Thu, 22 Jun 2023 13:58:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687467536; x=1690059536; 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=bI7F5jd8U0pmZoDCjrDdgbVISfzJlV2CUqYAibSVdHZ1OfrWu+Og6tKjTlcLZOSWFx f+VE9wjvDVgQCRSbWCOuVgmL30v4mkM+TeOOIsHTqjG+MpjulK0jZg8Kight1gJqL3EJ uelPGFi4K83pZcziIo91nBQ/Xb1a7VXoH5rDwteSo81u0B0E0AB9v0ZYlD/3EFJOnXaR LHJhz4j3eKvixa2uY3tcUc56YA7rm/NnSwLp194pufjXDiSsyScPz/VvaVef5k0S3cDu KA06LddfVd5MnGrcrI8kMVYj85Gsgf9HVHh6xfDQTCqtTE6ZYhHSEi5n5/a6D65T/xzp 1jRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687467536; x=1690059536; 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=c+kR2vewUK/KNQOCQKlW7CRpRCh8CzI24nDekrdFXX1wwtlYiYmSwS+DEkLeievnpT uoO9M0V/Cltqdwbyc4Uxh7l/xsdcOrqnQsU/j7o+38mLsFjwr97PXhScowczwKYvwCre F1T/uQ084pwNUf/NqTlZDqtM+cnJ/XnFpD01LOIKqI8cm4mFWnL+FSVYXxfnoxuW0Cdt KE4lIWfPz5N+ElzTVoxBIZ32W3MtZCQG7BJdMEu+FxuN1gHohZwiBDk1UCXHSHYqtlQj VEVlw2fvEZ/FOjbwWOZRxB2CwpEuNCmy6HV1mXfFe/OnpV+mhH/SAEzITbiUgHqIsMQP tFvg== X-Gm-Message-State: AC+VfDzkdPRsJc/3zWHu8jyU78NPVsi8JXf0Lk40ghODpdbobSuitgTn dQ8OzXmnnoHjblnINl2cYXU= X-Google-Smtp-Source: ACHHUZ6PptFNgBqCV4/Z0wvxz/N4kUJPrg8w5rC/9pu7Gesur9H1ncl000IRfhTCjlej4fSGBBngjg== X-Received: by 2002:a05:620a:c55:b0:75e:d11d:51ab with SMTP id u21-20020a05620a0c5500b0075ed11d51abmr23662404qki.9.1687467536577; Thu, 22 Jun 2023 13:58:56 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::36]) by smtp.googlemail.com with ESMTPSA id d18-20020a5b0c52000000b00bc501a1b062sm1684937ybr.42.2023.06.22.13.58.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 13:58:56 -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 v5 29/33] sh: Convert pte_free_tlb() to use ptdescs Date: Thu, 22 Jun 2023 13:57:41 -0700 Message-Id: <20230622205745.79707-30-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230622205745.79707-1-vishal.moola@gmail.com> References: <20230622205745.79707-1-vishal.moola@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 73D1240002 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: kcdebo8i9y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VO2BrAMp/ezWp1M1TsOEn/VWvBxa8LuGjqNv9M//Ic7jqtRYSfL/wjrjbl7mjmib/aXxtqGfCV9tTT1J6O1XMBAgPrco3hAJ4kj73MweWil91b9X1hOtEqJUtsECgMuCbKeDgTfvQreMKyb3lbrQvfqukIFZ12tvTHJIuaJhPLYEM4OCaU5Fl/cXjt45NndER/OKHTqQtHbb0EbkdIJmMz/YWuAiwE/ZyyQOD2Gv/801Z3Ev2chn0KVjZcRl38yWKwYtvgOGoxaOB25pPNB7jTVQX7xDu8CHgpZrQ9IlkdQ7xcsjrsLJ0TLSiDPN5x8wVLDZTDmO8xK1YJxFvPBmmmeF+TfhjDxnd64jdkXRnaqIFA5yt/gFQoRdeOakwibXsMBQ46s7pyLGq+aU8vpJU1fKPqRfNtDa2mprdf9UL5dFf8iR60vX/d1A7SOVw1b8FX2MDbvp5rYKq14BXWCZLjlSzJdr/RHcEH/xmiPUpQPhVhm4apBtWJekwql66wgw9UtEkBZc56Jp85Qoh/QbHXDvOlJg6jWLpXl8d40lfELNYz6olqhPyJ9GEWq+zfETgDuFQdyXywQy9D6BEQGWlwUnacGpHPVtA= 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 */