Message ID | 20230725042051.36691-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 6E576C00528 for <linux-mm@archiver.kernel.org>; Tue, 25 Jul 2023 04:22:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0AE4C90000D; Tue, 25 Jul 2023 00:22:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 06027900002; Tue, 25 Jul 2023 00:22:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E42BE90000D; Tue, 25 Jul 2023 00:22:11 -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 D097C900002 for <linux-mm@kvack.org>; Tue, 25 Jul 2023 00:22:11 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id AA140120C67 for <linux-mm@kvack.org>; Tue, 25 Jul 2023 04:22:11 +0000 (UTC) X-FDA: 81048836862.23.AE7E538 Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com [209.85.219.180]) by imf21.hostedemail.com (Postfix) with ESMTP id C695B1C000B for <linux-mm@kvack.org>; Tue, 25 Jul 2023 04:22:09 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=cSKYfsxs; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf21.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.180 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=1690258929; 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=l1aFKPNd779WB9A92hBoPq8vcODSuqE6bAzZFD4nxnIPz625xLrj9VfKfag7+gpi2Oisb7 K4Qpmso1KT8uu+/riGkdrMS6IOK8KnhyCnQw4G23npevTQmbH7/ba91dXxOcKX276pKFb5 rhJYs4s6WMA6ubkNcprCSrORb4lLIGs= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=cSKYfsxs; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf21.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.180 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690258929; a=rsa-sha256; cv=none; b=hx48VjR1naAhNdgacJfP/AjIVnnnF3D8jmhIzwovNTL3WTDx24mzZkHtA/2vyGSu6tEnI0 MDzkz1/G+zAD2vGSWAh4M7yxrrPDGUnzf8mK2ptVbb2ZmXKCV+me9mSzcvJNGZT4q8nfkv jPfdI9q9v9KqCgRusWMHtscYlnskgtM= Received: by mail-yb1-f180.google.com with SMTP id 3f1490d57ef6-d0b597e7ac1so2718249276.1 for <linux-mm@kvack.org>; Mon, 24 Jul 2023 21:22:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690258929; x=1690863729; 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=cSKYfsxsSJS7ffOM4NEt7zqMXRoog1hv17RKdUNV14hwO6VLFQmWr65pOVoZcWEcHO ZTxl5sTEIPleNQWx16W6XrYvQNc8QXYYi7iNKk/WLCGUAw+9con++Nm/zKIXiRkvFnF7 Kmn+uijjQiZlrdtiQKHDxzRwNsdnc8EVkdLLz/rRCQKPLyPDRXi+bbVeFHkpJoJjSqoQ LLoMyhXQM5hAlfwlKm9TGFpC4wUaQoFel3CzrwsKFljyIKf+UmRISO6P0XGMas/PtQ7m PZz9tli6d2qqtk+AGtTpbrNJSRqge28gNGwJ8TouzN1vk9cQxwcl+kcXzH8Il6o+JKN2 oqCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690258929; x=1690863729; 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=L9xlhxUb3/eWfmyI3eIwrNrfi4dJAOORytcCFstGu0fR8y+L6ZWqSoEDAj1MLwxwKT KHNrviKlooUKlvvaHz0gfyeAj51T8wlfSGcJ2poNo6TuS2FCfUmAiMEbEdlA6pyNjoui xQLN4nea1rwyFIlCEE4tZcMccSI7o4gPicdG+lfwsOcXjLu3QdSwDTeNLCNHToV8y/pb IQ1NNE2xf657Zo7w44Mckru6QEvL8IEAX9iUDpP5kftopyeBq4CKZpOwVbTraLKpEtUT wU7iX2yennU03bewUItK+K3F3149R0Kg3pmNL+LzO9e3g9iLPwiRL19pCl1dmws6hHuQ HQEA== X-Gm-Message-State: ABy/qLb/QxI4MxbgH9rVuiMhJhSBhMq6PNPBz5xn1hM5jTzPCgebUopF Vv0nhFyk26tKAOqEBt416vo= X-Google-Smtp-Source: APBJJlHinG28bY5749COLWHo/TBHjyABo5nSLZGYajOWLjAfKDEgrRU/vgHTv2Ygbb3WniVSdKl5LA== X-Received: by 2002:a25:700a:0:b0:d16:c58a:e63a with SMTP id l10-20020a25700a000000b00d16c58ae63amr1491610ybc.23.1690258928721; Mon, 24 Jul 2023 21:22:08 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::16]) by smtp.googlemail.com with ESMTPSA id h9-20020a25b189000000b00d0db687ef48sm1175540ybj.61.2023.07.24.21.22.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 21:22:08 -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 v7 29/31] sparc: Convert pgtable_pte_page_{ctor, dtor}() to ptdesc equivalents Date: Mon, 24 Jul 2023 21:20:49 -0700 Message-Id: <20230725042051.36691-30-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230725042051.36691-1-vishal.moola@gmail.com> References: <20230725042051.36691-1-vishal.moola@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: C695B1C000B X-Stat-Signature: y9kryw1nckgkor7dx7kwrwczu5quqk8y X-HE-Tag: 1690258929-661682 X-HE-Meta: U2FsdGVkX1+YrV8u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aT4mkfinfMZIo+5/CjddI9+8X1dbBCDC60ScoZvzoBwhVwoLCC8aJRid/n7prMpO4JlTWGILKOAhRuLSTceu9x16iqJWB6w/rU3i2i1YGN0YhA8EW+LRNQdKL6QuZvozcBKi1ANDY/UdJ+0hUr75ZXCwv2GDE9KBNt/nbpijmfDvJ8eX0yC9AUYnaK2VD0OP4FjgD2Y7qgzaUzr3rokvQWlpX9bCjYbFU7vPdz7ufL+9L14yuOKvLcta8lHdXZn92o9q0dL0avhx9NR4Cy+zcJ77HNqhBlik1cmba4Dk0u8mODFiCml7ezI0EDNK8revwKeDIMjriFrNmLswwCZ4EzqyXEDOapmQ82o3I1W6V0/RZ/voFWxH4MOQGp4aNeg8BoCwbQ38K1pQh/+Pl29Tq2L9GZOGLcRoIuuwIK1xKti3vmieiWnYDVgzq2JUqzdqU2Bdv+pIRIQ8epWkcveNxGr97jUwfmGXPs/NQKQ11dixnvAmWRyAxOyw9Zqo/8fB1jcs2yVytaxPBrY3r+VP8ipGyIWNA= 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);