Message ID | 20230622205745.79707-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 9CE7CC001DE for <linux-mm@archiver.kernel.org>; Thu, 22 Jun 2023 20:59:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 378108D0007; Thu, 22 Jun 2023 16:59:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 35E0E8D0001; Thu, 22 Jun 2023 16:59:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1F2978D0007; Thu, 22 Jun 2023 16:59:04 -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 11D558D0001 for <linux-mm@kvack.org>; Thu, 22 Jun 2023 16:59:04 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id D9C49B0378 for <linux-mm@kvack.org>; Thu, 22 Jun 2023 20:59:03 +0000 (UTC) X-FDA: 80931598566.14.D3E5BEB Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) by imf16.hostedemail.com (Postfix) with ESMTP id 9F04D18001F for <linux-mm@kvack.org>; Thu, 22 Jun 2023 20:59:01 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=oM2eqoar; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf16.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.171 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=1687467541; 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=MULBJzljSEMpKCkYcBoXAPe6pzMgvw+4VomlZmcG5tZ0/zNgk8iCDdA+VuO/iPLZQ1KbTU MKyuuKuY7P8BJg4FDMAomAtEyrV8TebIg3z2ZsoTKeCvEyeuNuZcs2kUw1+U+l1v1MzpbD Zi+wh2QqhLdTGefv+xoa8XIFkG0E3XU= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=oM2eqoar; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf16.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.171 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1687467541; a=rsa-sha256; cv=none; b=7h+TKbPhTD4pkBNpVwlZn3/Ne3DxVZak+tewpnaUO9Zv9VrUhRanm4aIqh8KcDdi1L2+sl FZzSPODmk25hJbJETpZuxzCxB285G6OLbFcBr4p/BD/j1Ov/vyqEa4T1kh3XMbjklh4XWv JpRSmq3MCCOuFn2DcAkOXmicdq+j+Ks= Received: by mail-yb1-f171.google.com with SMTP id 3f1490d57ef6-be3e2d172cbso6083584276.3 for <linux-mm@kvack.org>; Thu, 22 Jun 2023 13:59:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687467540; x=1690059540; 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=oM2eqoarO5mbV/RC9CFfzfiqtalAJnN4v5hz57x8U3YE+/nDsUrmXb6G6NrrfuA0hI XHlp77eZ+DzSkin9lWOejdHXde4PpTwM3RiXeCXAduuSgLDQHciXyNj0UWZkZs6yvfTo QiJ21UomG7h0wL2TX1WHwgye+s/VKR+Tvt1mxLr3lV1WjwsNROzbcgrXcLO9VnGSpeAH 7uCU00iH87QJVCo5EKIyfZlW0ogPYyMPi5bY1z7m39x6DegLfFGe3afEY/9WN7xyqGjN dkO4NEs5eZtRaUa3RiJYmwztOORKB/ecQ6EJlrLWdOw/VRXBlFmMwGL9APm0v6t4+G2k ZQDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687467540; x=1690059540; 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=egtt6i2/2BWMs17SE79if00T0AbrO8Dgo8nUoB0191NvqhogGgQGSww86iqUCNv+Ss uOF8MJLGy+3tltNJEZNDhRvHw0YNUjfvr9aNZKQsYbAxYLglvtI5RuhQGMJLzBenLuSl xbVkjyXBO1iuJSjxttZxTnt4rj1BedrUrH/2l97mYcDFZshfq8U+ToiPWRZazbSF5R8d Zboko5ela05BFhy8YP7SCVxgy0bmQiywRPl/e36kBp+G/6GAgHh1DQbG7dkyj96Oo79S W6qWCI1077qPfTqG9xa9CPqaVevBp0G/1WxIoacZEnuyDsSpbNcLuf8Sy0nQNHKcUwRT PuBQ== X-Gm-Message-State: AC+VfDzfPq/PUmwx0ymsSdaEF/IxttTQSVoB3KJyt6B4faIuAy7c8Ytv kuW1qyJ5r18SMVH2i6gvv/w= X-Google-Smtp-Source: ACHHUZ6Ec2kbAX1UDgGMj9ZCyBvb/VNaStMToJEcOH7SUf7INOW9CMO0HLoZFa/KezNB/PETnccRFQ== X-Received: by 2002:a25:bc53:0:b0:ba7:db6c:c0eb with SMTP id d19-20020a25bc53000000b00ba7db6cc0ebmr10225049ybk.3.1687467540710; Thu, 22 Jun 2023 13:59:00 -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.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 13:59:00 -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 v5 31/33] sparc: Convert pgtable_pte_page_{ctor, dtor}() to ptdesc equivalents Date: Thu, 22 Jun 2023 13:57:43 -0700 Message-Id: <20230622205745.79707-32-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-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 9F04D18001F X-Stat-Signature: dkp9p4zj3rbkohb69pdutoc6ptjwfzdc X-HE-Tag: 1687467541-750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kRSAFBztWe9fA1ghWzWYvfOI7CNpn5gm3EWLnPczgACIhYWtWQOinaG2rqvstR+XmmKHh9Amq2cMy9i6XZGSOEbsoyAXQ1IohiJXW4bLexkvrAC11TaYDJZ7Fq3vsb1dM+YNCS8/QTDppzU/8fFWdCJ0EvfwJ4WlajQGVA4mL20zlqarwUbSJ1Io8NuoU/5N4k6Ha0IUwyzzqtoIR9tCLVkRYL4FJx70B0Y94xuwU6Y/Wtsttr/nSYPBXvlHwj3EfroVXsJMUHzMkSGz1uzSFrkJBOzALDIFU+r2yWDBj8QHn5Ka7yJavg+o263Bu3RNbyyvZo3A+ad5EYdaVYMZrkDXuWBG9sx/jjtOc4E21gw+TyAaSOtdRXY5qcmAq+N+LbGm/Q1nhV09O3MmlAm3Y2stYFScw0YbiWbbFNY9uyJ8sDtPg7njYQn+CDxa/BIHXWAIS+1X9NJYr3jjCwBYAoCJmnpd+XqNhil70R9X2BjIL3JrkYEFdPcCqqcV6d83RvrdPO5kR4HGSXm11CmMaBJ4Nbm0JVu7uwkuvc71tgRq1QY6B/3gNDOXJ0= 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);