Message ID | 20230725042051.36691-10-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 07F13C25B5F for <linux-mm@archiver.kernel.org>; Tue, 25 Jul 2023 04:21:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 60A586B0083; Tue, 25 Jul 2023 00:21:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 590DA6B0085; Tue, 25 Jul 2023 00:21:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 42ECC6B0087; Tue, 25 Jul 2023 00:21:28 -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 336DB6B0083 for <linux-mm@kvack.org>; Tue, 25 Jul 2023 00:21:28 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 0D71E802BC for <linux-mm@kvack.org>; Tue, 25 Jul 2023 04:21:28 +0000 (UTC) X-FDA: 81048835056.28.FC3CBA3 Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) by imf02.hostedemail.com (Postfix) with ESMTP id 440D980004 for <linux-mm@kvack.org>; Tue, 25 Jul 2023 04:21:26 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=gPlpDfbg; spf=pass (imf02.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.178 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=1690258886; a=rsa-sha256; cv=none; b=JHNk13i7WjrdDzDKCXxu8gnA3YyW/HOUDCXLfQRdms8sRVTZu89AitS6EGQVP57quL4eoo FhMMDc7R7V7gbhWwUX8o8ka5Op57Zpj8BOy8soToUhTuHq2ay2hm3WQPuuZ6spWOOos7fo Dmro9k/yrt82KNs9z0Maaqz+/IQXYiw= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=gPlpDfbg; spf=pass (imf02.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.178 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=1690258886; 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=iZ7ozcISUSGoixC5UzzNE5tJz0+L18C1Imj6XmV/DYM=; b=7+YkZ/FgCsHyITBhjN6ibF+3BDuAkVqfDzR/N8BCUK3lmJnoEq8M3O87/6MI3WCA9CxkeX j10MocOGexMjOdmyG0Iw91CzGVPOmRfSRr/wbWcmywcfi5Q2vQ/spFWyIxwjM+AN1/O+EK iCpbS58JONPHmgfzR14u/pGwntlftQw= Received: by mail-yb1-f178.google.com with SMTP id 3f1490d57ef6-d05a63946e0so4083561276.1 for <linux-mm@kvack.org>; Mon, 24 Jul 2023 21:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690258885; x=1690863685; 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=iZ7ozcISUSGoixC5UzzNE5tJz0+L18C1Imj6XmV/DYM=; b=gPlpDfbgQUaDh17nMUuxk8LJn1nYdgEAVfSMEcDpmwNJCwXKDaomTlh0BY+xZkFMKd tFRmLrBoE1Vp0IzzPSrF8bgPZVxB+9aP3VrUcSHjKLr+y7jNlD4PpyjtmGaGnI3Rciw5 xPEUpzqKKaVrLEfBMw5DD9c3Ng9G9PKL+n4eQ6Zcvb2wmVEKnYUeBmB54WntK+cvg6UK QgMdLEB/drGqPOPjrgcd99xnUW0qMuGMWDmaVMRTFx92PXfEsSeKT6B4JdtVKY4BOuL7 QKWH8kGjoeg6j0VlgnYB4AI/+z50XhZH+jdg01QIwrxx7GkpXjxyDTkcgrBZeXNJtHxg DmIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690258885; x=1690863685; 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=iZ7ozcISUSGoixC5UzzNE5tJz0+L18C1Imj6XmV/DYM=; b=EkfDxPxC2shCwMilsFQtIZwj72tcRoTS/Dbr2EvFKc7uzmoj1PmepdMO/7GiU2d/zx 2mKiqdu0+CnqG9BY5PjqhQXKidlrERHcZzmSqQ2ir4P6yFmD56MCaBvSdf4kaxQXz3OZ jJrPEtSKo4nPX8I0z9WB46VGvalG6OKlwzgMcc2NRnv5Y4PLNoi86hB4Bt5tCuBld9Qo HLmMvM/Vvs2nQvVk0xSFHf2v/ckXbG5aFUi0OW0gIMApLcE9Q2k00DoGnEIIBeNmoW8H m9u8QLjya9HTO5OFZha/Ts0QO0+UbSkrO2ubLAQgNDiPCmxUcpnWwkfp5AvCwWxN3uWM 1xNw== X-Gm-Message-State: ABy/qLYqPJ2947gOYWYD3E8PoiETDnEjW/lu08zLPLaWcte9p9k/TjBQ 4NQhfyrkS0zUxGwt5P1U2WI= X-Google-Smtp-Source: APBJJlEU2X68Ojav0w5cqMxtXa5ryZpYlhi5g+xNY8vonB7Weqi80FZO/gUhwzOoBC/kjqTB4Zo1Gw== X-Received: by 2002:a25:f827:0:b0:d0e:794f:64ef with SMTP id u39-20020a25f827000000b00d0e794f64efmr4552557ybd.0.1690258885213; Mon, 24 Jul 2023 21:21:25 -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.21.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 21:21:24 -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>, Mike Rapoport <rppt@kernel.org> Subject: [PATCH mm-unstable v7 09/31] mm: Convert pmd_ptlock_free() to use ptdescs Date: Mon, 24 Jul 2023 21:20:29 -0700 Message-Id: <20230725042051.36691-10-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-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 440D980004 X-Stat-Signature: 51dkdaitmdezanoifi9c3944hphjysj3 X-Rspam-User: X-HE-Tag: 1690258886-521342 X-HE-Meta: U2FsdGVkX1/9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qj6wowK66zuWCZR89KXCK4lncH7hZ7YfW07Shzv0pVPQZBxQ/IYbb+2vLVtJvPotnjmwk5hDPrBu9V0gBMBwsaMjrfkgrVFTPv7emK/kGswY7DAyXDBgpKXMsmiNz7eKKtyfEk+Sm63Q6+hTFBL5lnmCUcvRntPNzAj4AAqB6nn0qlE8UTLfFw8LZHo/LAHMMO+oB8iek7KjjX6Nug02h9y2JCUXJpSFxrcCqvyhC1G2Ef4xBIhrqhL9z7nEXqR+2cBViZV3xYpm35szSTSU+PvxaIgcA3Xt0hZNWP3P8yiHK+vqT2XsMz7bamiRaCefFsDxUmKOzb8W8TuPvvsvKmfM7fwaaN36ej8Y4ZuQFZ3ocav7Gl1NL9eVtGatBIJpCz6Cm0c4nn5eRZKzQ1C4CxvLteYzO8xyIUW2X1YU0+E3ywP52akU0KvIjxNtjyP96gj0G4YkSGIa8lGKBjjFidOhPCSsGjcgq16W8GWJZjhCA9jE4h+WiL5MxiRd7pMdRq2qK3qexCg1ek= 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/include/linux/mm.h b/include/linux/mm.h index 675972d3f7e4..774fe83c0c16 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2982,12 +2982,12 @@ static inline bool pmd_ptlock_init(struct ptdesc *ptdesc) return ptlock_init(ptdesc); } -static inline void pmd_ptlock_free(struct page *page) +static inline void pmd_ptlock_free(struct ptdesc *ptdesc) { #ifdef CONFIG_TRANSPARENT_HUGEPAGE - VM_BUG_ON_PAGE(page->pmd_huge_pte, page); + VM_BUG_ON_PAGE(ptdesc->pmd_huge_pte, ptdesc_page(ptdesc)); #endif - ptlock_free(page); + ptlock_free(ptdesc_page(ptdesc)); } #define pmd_huge_pte(mm, pmd) (pmd_ptdesc(pmd)->pmd_huge_pte) @@ -3000,7 +3000,7 @@ static inline spinlock_t *pmd_lockptr(struct mm_struct *mm, pmd_t *pmd) } static inline bool pmd_ptlock_init(struct ptdesc *ptdesc) { return true; } -static inline void pmd_ptlock_free(struct page *page) {} +static inline void pmd_ptlock_free(struct ptdesc *ptdesc) {} #define pmd_huge_pte(mm, pmd) ((mm)->pmd_huge_pte) @@ -3024,7 +3024,7 @@ static inline bool pgtable_pmd_page_ctor(struct page *page) static inline void pgtable_pmd_page_dtor(struct page *page) { - pmd_ptlock_free(page); + pmd_ptlock_free(page_ptdesc(page)); __ClearPageTable(page); dec_lruvec_page_state(page, NR_PAGETABLE); }