Message ID | 20230731170332.69404-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 A4B27C001DC for <linux-mm@archiver.kernel.org>; Mon, 31 Jul 2023 17:04:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8034C28007B; Mon, 31 Jul 2023 13:04:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 78C2028007A; Mon, 31 Jul 2023 13:04:41 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 62CC828007B; Mon, 31 Jul 2023 13:04:41 -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 5077328007A for <linux-mm@kvack.org>; Mon, 31 Jul 2023 13:04:41 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 265841A0B08 for <linux-mm@kvack.org>; Mon, 31 Jul 2023 17:04:41 +0000 (UTC) X-FDA: 81072531162.27.CE00E2B Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com [209.85.219.175]) by imf09.hostedemail.com (Postfix) with ESMTP id 31C1914000C for <linux-mm@kvack.org>; Mon, 31 Jul 2023 17:04:38 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=bucd5YCH; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf09.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.175 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=1690823079; 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=ES9RfFz84BcV9KH4Nk3AfkjPOEvVVRdPbPMSiTejLcw=; b=PvJUOxFU+/Bg05Q4SKa4fDweOmhVmZGShqh535iBCU/F2dD6V1gy17eSTqF2NFmnaL0cgy B+GaAf/zluCTwih9OHZJVNXcPCTMlgDDrBIaRxxmE+erpREb88QsWm6LrONAQ9TEiIapqh yjPJXKf3QlW/nqclx47U1+pLdT0Q+1o= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=bucd5YCH; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf09.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.175 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690823079; a=rsa-sha256; cv=none; b=KHpIwns+4lI9A761Jqv4iMd9fkMk5hbu5RhfxrSZAXMkjje2ZDFDXfzNlxZCo9VBeVe4J3 GYc/oiyN+SfbgDwFiNsrP/nDJ3crXx4Q8W3g+MVLrDbYh2Q8DLh4YlgBWayks0OwxaeYEY Ocs82Nqmmj8wuXUD8BHl6zskiH+5xLE= Received: by mail-yb1-f175.google.com with SMTP id 3f1490d57ef6-d0e55215aebso5130158276.1 for <linux-mm@kvack.org>; Mon, 31 Jul 2023 10:04:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690823078; x=1691427878; 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=ES9RfFz84BcV9KH4Nk3AfkjPOEvVVRdPbPMSiTejLcw=; b=bucd5YCHLhUvx7sCV87tgBpS/yvMqV1hEBgLcIdtkbm6tehUvQ4b8S8cGlWi7/sHjP BwMI7RjEZDCFEoZqNSu1BeMgh4cbrdk5jNpPQbDjyiWAygQ6GF4RuUGGOqf6kg0VdfDp NpGCzdPUkKHCC4r7KLVhXjv8laMIW1vLz9Hl1FxyK0cd8KUbq0iEAg4q7XF5QTVPGxVT zofHi8CwcgETUVRV13Pib0COy9kOuveisGg57GrFHsyYwDdtVuj+zN7pcxA+niXzYe26 MUnkSw5QHmNGRsesWl9frKtr+MQAPLnxo4yz7glnwyiVSVRMIHwbjCv+Zju9S3AQsrM+ fRtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690823078; x=1691427878; 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=ES9RfFz84BcV9KH4Nk3AfkjPOEvVVRdPbPMSiTejLcw=; b=OBjwLHMlGOTICd6gSR1DjotAhcyOuXIDSghGO8dTjGLWmTtRGYn+7qLoXIBAkF521d pTu2cI+k8uXLy36byy/t7RrWoXz7o+4ZN9cZptKD5SRTDRJ+qdsfSw50pCJSLXrIOR3/ lzbeIZIFarHrvIL4iFaxUyu8/MzcHPIPJTft+iH66mnrN951kPKltivQY7HkAsNYkwD3 G3j43SL8HQeEWs5XH2lZf1RYNCqZxEcZcBEYD36NQQDRsx4Q1B84ofgBGYGqGf9QBzt6 NmOjrfjC5H4IDclSq0IwFzNjyh46d1BLbZe67POqpv6K1VmiJ1y/UxghFRaMcl4vrqao 0TEA== X-Gm-Message-State: ABy/qLZ1RLYpdJjjdfrN8iXNzBcbF3wbN3zoEXZU2V7MmkDgV25pXjso D7GFXWulnrbit6HrcEGHqR0= X-Google-Smtp-Source: APBJJlH4kzdzBzRUIaE/50pCy+wwrgbHVj7GhIP0EpKNGW/07mJrSi1SmuvJmvqLlmEJ9bXKX+N7ow== X-Received: by 2002:a25:2496:0:b0:d0d:f5f3:d2bf with SMTP id k144-20020a252496000000b00d0df5f3d2bfmr9661709ybk.48.1690823077914; Mon, 31 Jul 2023 10:04:37 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::16]) by smtp.googlemail.com with ESMTPSA id x31-20020a25ac9f000000b00c832ad2e2eesm2511833ybi.60.2023.07.31.10.04.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jul 2023 10:04:37 -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>, "David S. Miller" <davem@davemloft.net>, Mike Rapoport <rppt@kernel.org> Subject: [PATCH mm-unstable v8 29/31] sparc: Convert pgtable_pte_page_{ctor, dtor}() to ptdesc equivalents Date: Mon, 31 Jul 2023 10:03:30 -0700 Message-Id: <20230731170332.69404-30-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230731170332.69404-1-vishal.moola@gmail.com> References: <20230731170332.69404-1-vishal.moola@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Stat-Signature: 53ib7sn8j4krrpy7y8fhoiriofeje1po X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 31C1914000C X-HE-Tag: 1690823078-384891 X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j+eqAC9AzVOpb/Bjz87DY+Xc7XjW7LmglFJaaqrO+NKzmNjfoxSqHk1q+DbpN96rSfHTf/FGLOdM/3Vhl+0xhFX8zpRjfKCnFBLOOXMvew+8bSt2lxD1O8anFSKB42NCcROBswLGnP86fn6utG3dnlRXVU6bqdXImcnikssEwCPbLKYY9+U9Sn+ENB7Avrpqm6NRrgQ2fU5dpGrX2eCNrwUVn5zgS9rfvigx60duNrtUb3ekq6K/c9kMoOfjUJHhePNqagLPPDSekWiliX0OteU2SN5r9BzsREwkhzpnEWe4j6qJRzXOBF6YAnftbO70hcII7m+IRh6hx6/Nb+XtmZ+xRTuKPLIUSZX6n+SmEvyhRgPyDuZmh/U5eZE4z6y9/USgobeOAcZtmaRZaY4MnAVfUmb2as5rgen1tbqJeIxJFI6XZDBs9ZJdipEMdJZGT1yobtAKwcnBbbZxCgqA/pVbxz5rZ6Fi2Xgv/1NkAm32xGZAQeftBfjnK4MGdMMHFo2Fxn+pFn5rhq8DCo3+sXrczHXmxo4LU1C9vwzg33F7hc6HpMpQ= 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/sparc/mm/srmmu.c b/arch/sparc/mm/srmmu.c index 13f027afc875..8393faa3e596 100644 --- a/arch/sparc/mm/srmmu.c +++ b/arch/sparc/mm/srmmu.c @@ -355,7 +355,8 @@ pgtable_t pte_alloc_one(struct mm_struct *mm) return NULL; page = pfn_to_page(__nocache_pa((unsigned long)ptep) >> PAGE_SHIFT); spin_lock(&mm->page_table_lock); - if (page_ref_inc_return(page) == 2 && !pgtable_pte_page_ctor(page)) { + if (page_ref_inc_return(page) == 2 && + !pagetable_pte_ctor(page_ptdesc(page))) { page_ref_dec(page); ptep = NULL; } @@ -371,7 +372,7 @@ void pte_free(struct mm_struct *mm, pgtable_t ptep) page = pfn_to_page(__nocache_pa((unsigned long)ptep) >> PAGE_SHIFT); spin_lock(&mm->page_table_lock); if (page_ref_dec_return(page) == 1) - pgtable_pte_page_dtor(page); + pagetable_pte_dtor(page_ptdesc(page)); spin_unlock(&mm->page_table_lock); srmmu_free_nocache(ptep, SRMMU_PTE_TABLE_SIZE);