Message ID | 20230612210423.18611-23-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 9A308C88CB2 for <linux-mm@archiver.kernel.org>; Mon, 12 Jun 2023 21:05:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 63C7B94000B; Mon, 12 Jun 2023 17:05:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5A1238E000A; Mon, 12 Jun 2023 17:05:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 418CE94000B; Mon, 12 Jun 2023 17:05:34 -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 2D7BA8E000A for <linux-mm@kvack.org>; Mon, 12 Jun 2023 17:05:34 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id DC7AE1C7C4B for <linux-mm@kvack.org>; Mon, 12 Jun 2023 21:05:33 +0000 (UTC) X-FDA: 80895326946.10.5EFD23B Received: from mail-oi1-f175.google.com (mail-oi1-f175.google.com [209.85.167.175]) by imf03.hostedemail.com (Postfix) with ESMTP id DEAE020007 for <linux-mm@kvack.org>; Mon, 12 Jun 2023 21:05:31 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Hs3OvBwx; spf=pass (imf03.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.167.175 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=1686603931; 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=SFY2ToTc/KdsqBsJRwbv8KRLKHn/LK4ImlbTce4a9J0=; b=WoO0yp+0fd1/E/yORXzWF6sL00nn2w4SBXw85BUVhH2JE4OzcUAy7msdtm+fqDVV/ql2x6 TF3KEJvOrJH/gPq1GzCC99i7uINmYsnUOhuCxz2WgeIpZbck2WGM38RrhcD7BERvO+1Rcm TekQ2WKY6Brw4f+5bqH15pvUwK/80A8= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1686603931; a=rsa-sha256; cv=none; b=S5IDD72majZJex9EDpyflQUQOhw8FJ/q4P9xhpaX7q/Q9KOFyqUIFxN/a1nXliTkx+kqEt +RnlHeHnAxsEzvjkCoJmmvf2uVpmq9eRcBK4y+ZKX4zTIrUdgRwAjuCjzkVeFgDti/7UjN cLxU0ZWHCTN2sp9gIt8gBN6s8mt0Kmk= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Hs3OvBwx; spf=pass (imf03.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.167.175 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-oi1-f175.google.com with SMTP id 5614622812f47-38ede2e0e69so2825604b6e.2 for <linux-mm@kvack.org>; Mon, 12 Jun 2023 14:05:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686603931; x=1689195931; 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=SFY2ToTc/KdsqBsJRwbv8KRLKHn/LK4ImlbTce4a9J0=; b=Hs3OvBwxjNbzyixj7aSD+NgtYC45wE004i2+DhLM32gwxSgyME8uf0ehUc+DFmEBWc xTMw6H3P+HY7Tq7UuCfgFLKB1x+LkNTK02YDaXYWD1PeR9EEokleZ/wyxNBXTFWH/El9 c1bXL1i+QVcFD32llcBXIuwFJs/8j8fBCHPhcoBGFcfEu/JCwezOfmF0Yorw8OxgwAQW Ostw6KM5t1cwURmpaD0hTGMu4TC4wHA6I1gDTQyjBc+K/xsxhtlIAUhVsIG12sG34SnA HCLguPK5bJjFlDAoWGoj4Zr1Q8mKdxu4vSYAJa+HTJDnQnTisEOZH/pEJVvGvXlWVYbR pDDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686603931; x=1689195931; 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=SFY2ToTc/KdsqBsJRwbv8KRLKHn/LK4ImlbTce4a9J0=; b=KodRTc8LJOvTFyZwOeN41U8jIjdMZQe2hnYsYzeWMlE/z6AM7Zijv62uAejof2ZxXl Sa5s3G3S4TqLoWpIW4jBfR1u/AmX3ql12dxUyWKcYZzESBUwgYOLjQrlflB6PSgEXvZD gOl3/mAHBxActWi3HmRMmWM2F5r6KoFux2aywS3vs8+KXoy6JlqIbFqlufaFnUJEKsh2 kNxLfabkecHjuCVm17qTCEt3kIit1Cl+gRQV4FtuPhBsSyEAVjd9q63XiGhjocueNVl6 yTPpBPtR47eBP5hWy/YOBuqtyn+QNxa2QqWC3uRWYMtU5j+MZe2YcQ/ZKyhkQNmYWYXe 70Eg== X-Gm-Message-State: AC+VfDzhwTCR5ZTRcDZC5Xfw7EDI5vgxBF7FI3Ohq1FxOTxqwplgMjn3 b+gVAtEZ89tWwDJShYWKCZs= X-Google-Smtp-Source: ACHHUZ6j3CfgAuZNFN9JISmvDm/MlbHYE4sRUTkol2XKHwfWtbEYLS5pSkDxzuxqJ+njTa+59MBJKg== X-Received: by 2002:a05:6358:1a8a:b0:129:bddf:7960 with SMTP id gm10-20020a0563581a8a00b00129bddf7960mr4783450rwb.16.1686603930823; Mon, 12 Jun 2023 14:05:30 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::16]) by smtp.googlemail.com with ESMTPSA id s125-20020a817783000000b00569eb609458sm2757115ywc.81.2023.06.12.14.05.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 14:05:30 -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>, Guo Ren <guoren@kernel.org> Subject: [PATCH v4 22/34] csky: Convert __pte_free_tlb() to use ptdescs Date: Mon, 12 Jun 2023 14:04:11 -0700 Message-Id: <20230612210423.18611-23-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230612210423.18611-1-vishal.moola@gmail.com> References: <20230612210423.18611-1-vishal.moola@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: DEAE020007 X-Rspam-User: X-Stat-Signature: qyemrcnehn9ctprwm9xuh8pq3k13a78s X-Rspamd-Server: rspam03 X-HE-Tag: 1686603931-935260 X-HE-Meta: U2FsdGVkX1/TlYjG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fUnX4iNl0anWMZb4+NQ6VCz0WfYxSn6Bzg6GQfcFmDn1zZh1YWK+7Z7W17ir9XcKxEF79mDiNknnuC4wRp26UhWcGoqCidgW2vFpJlq5LBMt1RXs5deBMzbCi42J2/N8FxdCnwABPduoAvIuJRWRoIDD+uV2FUSFBtwtXumh7TQRNW9smBRsgRdDXHrLrVOva+WGhDDue+Mw3K7RYK6ftxMRDi+n/kewEpU/lTN7PL3Ki8x5Z0bymIV0uzgWWcae2TWUa5jqchfFGNeLOGD6YkYyQRhFvS8BhqWC7DC0JkvNg3bIzsCAD8Xj2Htqeto8hBk03nk02PGkCjTKMYlwPJXBdUFIoJUEJHMVT21KjCuByvo1nBdZk4uVTL+1w2toiNv3XO37cgTQFZtwcdC80r9GgqG5Pdc6GlYeLWeJgLq4KTzKhf2c/uegkwAEVQgSevSzsxzefAhBVJ/7AfomTl79+jBTxKOi6bbpIMrknYdSbYvc64V8LIOVuvTceo7D/5K8MbjGRcj3jdfOjZEF7fHEd9tUeF2+4BShvb+FA0= 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
|
On Mon, Jun 12, 2023 at 02:04:11PM -0700, Vishal Moola (Oracle) wrote: > Part of the conversions to replace pgtable constructor/destructors with > ptdesc equivalents. > > Signed-off-by: Vishal Moola (Oracle) <vishal.moola@gmail.com> > Acked-by: Guo Ren <guoren@kernel.org> Acked-by: Mike Rapoport (IBM) <rppt@kernel.org> > --- > arch/csky/include/asm/pgalloc.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/csky/include/asm/pgalloc.h b/arch/csky/include/asm/pgalloc.h > index 7d57e5da0914..9c84c9012e53 100644 > --- a/arch/csky/include/asm/pgalloc.h > +++ b/arch/csky/include/asm/pgalloc.h > @@ -63,8 +63,8 @@ static inline pgd_t *pgd_alloc(struct mm_struct *mm) > > #define __pte_free_tlb(tlb, pte, address) \ > do { \ > - pgtable_pte_page_dtor(pte); \ > - tlb_remove_page(tlb, pte); \ > + pagetable_pte_dtor(page_ptdesc(pte)); \ > + tlb_remove_page_ptdesc(tlb, page_ptdesc(pte)); \ > } while (0) > > extern void pagetable_init(void); > -- > 2.40.1 > >
diff --git a/arch/csky/include/asm/pgalloc.h b/arch/csky/include/asm/pgalloc.h index 7d57e5da0914..9c84c9012e53 100644 --- a/arch/csky/include/asm/pgalloc.h +++ b/arch/csky/include/asm/pgalloc.h @@ -63,8 +63,8 @@ static inline pgd_t *pgd_alloc(struct mm_struct *mm) #define __pte_free_tlb(tlb, pte, address) \ do { \ - pgtable_pte_page_dtor(pte); \ - tlb_remove_page(tlb, pte); \ + pagetable_pte_dtor(page_ptdesc(pte)); \ + tlb_remove_page_ptdesc(tlb, page_ptdesc(pte)); \ } while (0) extern void pagetable_init(void);