Message ID | 20230627031431.29653-32-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 C01D4EB64DC for <linux-mm@archiver.kernel.org>; Tue, 27 Jun 2023 03:16:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 970938E0015; Mon, 26 Jun 2023 23:16:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8F8A78E0002; Mon, 26 Jun 2023 23:16:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 724268E0015; Mon, 26 Jun 2023 23:16:16 -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 57F4A8E0002 for <linux-mm@kvack.org>; Mon, 26 Jun 2023 23:16:16 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 39E771C8734 for <linux-mm@kvack.org>; Tue, 27 Jun 2023 03:16:16 +0000 (UTC) X-FDA: 80947064352.18.5D9D1B4 Received: from mail-yw1-f177.google.com (mail-yw1-f177.google.com [209.85.128.177]) by imf23.hostedemail.com (Postfix) with ESMTP id 713E9140016 for <linux-mm@kvack.org>; Tue, 27 Jun 2023 03:16:14 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=dLHeJwfX; spf=pass (imf23.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.128.177 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=1687835774; a=rsa-sha256; cv=none; b=4eRtl3+znnygGRwrrJ+scPFUIzW4jGfBtowxNk2s0TnLtxn8HEIWkdPkpX4AdsGnQaUOEV +loo6YYAruxd9ir/ISksUMcJdfzZKq81qlT+/hG4ncqT79C7tAp0BntLsqkpnXvJJXGlUm E5KGDEVDIwLBKA9PDNMflovn54A5Pao= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=dLHeJwfX; spf=pass (imf23.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.128.177 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=1687835774; 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=5kaYCwqGdbpk22jUjnY9LqRC2DNDwpuaBiMWAYd4YyoFy18sa+2qULUaU3OhQT1HSg9OGw fneIF0poYUYpPhYbsPc1DhbRa1oPDDvMbNn8rZhfa7614iQNh8oaWqlI8GacxEpFzofuIS jzga5OzTrw4J+i0sXAbLpgVzw9h9fa4= Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-5707b429540so62188027b3.1 for <linux-mm@kvack.org>; Mon, 26 Jun 2023 20:16:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687835773; x=1690427773; 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=dLHeJwfXKaTxpO4c0sQBm93zd4wQrUxFt2CjFz5qWQ7T65DNPYbc5uKxnR+eK0IL7t R2V9BA+60dIzn1DRHNiAM8OyrAJAml6DoS1l2PV4PYnoH4WUW9ywNy9TDf3yz7ME+vFq NLGTD2cyLj0S/PJY2GAWd4utoHoRGPP+jS/tnomFzM8g/lVPns4ABJt0M6rzW8rsiL9B m29bDYcQGdb38WDxMbx9Hk40CYhBq3UtQSCa5gjYXZKOF2lc/8CEcIQNZ6Wo9PGTUZtN IYAVdG9F0aChBdAkISeJXlJPZbPB7Nf1GhV5RWEzzuTieYJGBF1MgcwOgT5miNq4avun mLuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687835773; x=1690427773; 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=XnSmxW9DANV7mJ+ou3ZHQ6i2Yjv0IRsEO4BUXS1b2ObuPzAhjo18SYtpYZuNzesB++ jRyN2vKWx1d320G/qzEA9UM//YKtKe54VHnBmiapogyDWBQU1zSxKoyL2aQdKc8xXaqK OHZxF0XtiiX3txbYW/q5Vi7dWwljXDlmzi9IkNQr0kzDOH8fLF2d08hhR2mfvpoqNqCg IzHybOrfzz3sZ/8ixBc1ntf9XwAeVhFudm+6VhboSpWqdA7UocPUf1SoIo6v9dA2sY5a idDkKcL+x3MOy3pK9g5QOWyqxXV1enufz9I4/e/ppMfNEVj2V0RBISBHB0cj/s46pTYt us3g== X-Gm-Message-State: AC+VfDwBFukpOiGz98fZs2czS3vBRg5HlpW3GVl7eY76M0USnm1/FUgf tWC7onSnK1s5nOOCsuJycqg= X-Google-Smtp-Source: ACHHUZ7mviCb8EMix7g2GoIipUtqwtEpnZ4nIwFH1XOniyUWELa3iqb5sNl3hiYnjR+jSDWsaWi7Kw== X-Received: by 2002:a0d:cbcb:0:b0:56c:e5a3:3e09 with SMTP id n194-20020a0dcbcb000000b0056ce5a33e09mr43279069ywd.15.1687835773500; Mon, 26 Jun 2023 20:16:13 -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.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 20:16: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>, "David S. Miller" <davem@davemloft.net>, Mike Rapoport <rppt@kernel.org> Subject: [PATCH v6 31/33] sparc: Convert pgtable_pte_page_{ctor, dtor}() to ptdesc equivalents Date: Mon, 26 Jun 2023 20:14:29 -0700 Message-Id: <20230627031431.29653-32-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-Server: rspam08 X-Rspamd-Queue-Id: 713E9140016 X-Stat-Signature: df5d3mdxwejrzrtk9i3f3g6rr734dmbo X-Rspam-User: X-HE-Tag: 1687835774-13346 X-HE-Meta: U2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nGgkEw5riPPI0GKd5Aym/Yx/mqCjTjf8g9M+Ukb5X23P6dfabZczOZYuWsXPTSwqTHJylDMvil7n6PxgiA7uf37Rlg8907Eb8tZ/u6Xp7r+S3FwhjYjueOFyJBe8pZEX+V0F4c3Evp8qDZKw24NN8hdUZvY8HRuNvnp1ooeZa4t31l8C0igfdDgwZZNRvo6YF+7QCW5/sZ3GB4y74SuaYd0ChTiAQC8LeUHguVlcQya3sDU9emA2DNOOBW19I0+yAio1FR16I6gIQyAPXQZZhzZiQ0o6a+mO7F3lyvU2z1GP7sCEnPIbhaMvg37s7JCckjHTnUo2hDcoXLu+J4gAI7wAVjnNXK+8dTQhqewcIc/7CwjGQRQDhD+4mOP4uUnDYXJY23Ybb0DL3R5Y+FhuwXISCHkYUKcPg+uoiG5JrzFOgRjtHM99QlWl62A1jOCNf1kFpSEwsL1CET4tXi00mLKrWL6nV0HILnTWG184lzhdIZ2NarMRBM5KI5mixqJGCEWsZPhUDJaanDGYrx2cj95wPaWVz/PSso6gYCeOiyzoiIsKDSqrfhhc37e7fJYcZIQA9XP/PUvcQzLJHq2LCLWMVwRpjM6UaBVWuFg1UayvZQ== 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);