Message ID | 20230807230513.102486-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 8D3D6C001DF for <linux-mm@archiver.kernel.org>; Mon, 7 Aug 2023 23:05:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8DEDF94000E; Mon, 7 Aug 2023 19:05:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 83D04940008; Mon, 7 Aug 2023 19:05:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6DD9894000E; Mon, 7 Aug 2023 19:05:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 5FE15940008 for <linux-mm@kvack.org>; Mon, 7 Aug 2023 19:05:39 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 3D3EEB13B6 for <linux-mm@kvack.org>; Mon, 7 Aug 2023 23:05:39 +0000 (UTC) X-FDA: 81098842398.11.7266C44 Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) by imf06.hostedemail.com (Postfix) with ESMTP id 6982418001A for <linux-mm@kvack.org>; Mon, 7 Aug 2023 23:05:37 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b="ipvaU8x/"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf06.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=1691449537; 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=dL6AQetgHURU9peF5jMm+1QPkGPdtGd2X/zb9xq5Tzw=; b=BDMZtOl+E/XZnYRM/Fon+DXZA0z4w5BGMs5vmAHd7/cgUjaAtb/gMxzfXeRnoUG4T/ljgi ESzaCw3VLKymuvlh8KJoEc5agh2J0Mkoew5DI8FKasRu+qkspRW6ZcrixJbmIXJtkRcSuK pejNvAUGaA8gN0gRbRQYbN8zFJVBcyI= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b="ipvaU8x/"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf06.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=1691449537; a=rsa-sha256; cv=none; b=H6UqJG2fnHL7o4o3sXcWW/r1CdlmAGvuxLOZ7ZWcbUdwkE0pudxoeHpRsRE65f32CvcJM5 xEe0RpT/R5Ujo6azt8hUeTCdJ0rDbeD7dPnvK3qi/0lKzc/4nmxFMrsQzal1MBEozVZopk qUecxj1YImeIMmnDlmdscGNEUQtIhmw= Received: by mail-yb1-f171.google.com with SMTP id 3f1490d57ef6-d593a63e249so512248276.3 for <linux-mm@kvack.org>; Mon, 07 Aug 2023 16:05:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691449536; x=1692054336; 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=dL6AQetgHURU9peF5jMm+1QPkGPdtGd2X/zb9xq5Tzw=; b=ipvaU8x/4/BvbPbL1JSP5UKyrvOXFJin5b02qnpk0+g2WqZ4eJ+PO+ktIgA+6wNoSm aaVqpEKee+fuDlQKCW2FfgF7SgMBsBqJt3e1nMH+AXWpM2n5M5vJ6ySCVS0SQ6gxdoiI D+Vz3KZ0hmlesWiSA/IngK6t1yMsQcmq6H5TLlpCkzZtF+sAfosr9KpkynHtpBKwq7VS GLoFH093mbAem14YxFU+jWVsiLanVvmYVX25waYX2eZafZZIUXESTosUd2Oq+mhwT6KE DFWO6vdcB84fh2CYUtre/BRV5qGnoLxfl2hREphZC8Q8m4iPBusEVSAtzxRpIAKFC+MO xrMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691449536; x=1692054336; 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=dL6AQetgHURU9peF5jMm+1QPkGPdtGd2X/zb9xq5Tzw=; b=QOlm7sWgTNWo9icXfdK7EjHv+zVMyc1g1CPI1kI3Nnf/+3k9iZoXmCCs52kdRUlzFv jxT1dbT5Y9/9A/6mrgIQuaqDjZ7UMoiJlkkx9GQ2HNntwgK9RL+oSBPDxHNuVLGh9yNG WQqNgXAq1VysI939NmJnx3NPhtt7Fr/ZhqPQBsWp6pfvkWakoPIBL3zhz6WB9dyy1Qhq caGGy9qA8MHWBGrsLhz5Gl31FtL9sI7T3eupi5Avh84BeRZMzG8iPDrfuFXp9aBXd76y aigUJPyULMBpbQZo7VSGebXcAUeTvm5HIdjNpREd40w/ysI+j9lfFaxcdv3ucd5uMf8h YnEQ== X-Gm-Message-State: AOJu0YztVwPLBzAPhgfp93+mGl/UZQKrOtOn6a4JeMLRDylB6lkDkxH8 k4HS5urJgx+Ga/2HBJYLT5w= X-Google-Smtp-Source: AGHT+IEvxj9+7jMT4q6zEzLr5Igqcb/a7jma6HML30e7U0QAJ8Bd3AhAgHjN0UpvuwRaK7JUtc9G0w== X-Received: by 2002:a25:738b:0:b0:d09:7f94:6ea3 with SMTP id o133-20020a25738b000000b00d097f946ea3mr11456718ybc.65.1691449536455; Mon, 07 Aug 2023 16:05:36 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::16]) by smtp.googlemail.com with ESMTPSA id d190-20020a25cdc7000000b00d3596aca5bcsm2545203ybf.34.2023.08.07.16.05.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 16:05:36 -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 v9 09/31] mm: Convert pmd_ptlock_free() to use ptdescs Date: Mon, 7 Aug 2023 16:04:51 -0700 Message-Id: <20230807230513.102486-10-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230807230513.102486-1-vishal.moola@gmail.com> References: <20230807230513.102486-1-vishal.moola@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 6982418001A X-Stat-Signature: gce1owcenttxmtader76y7hqbfw6k536 X-Rspam-User: X-HE-Tag: 1691449537-188580 X-HE-Meta: U2FsdGVkX1+mKfi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qyslH4niYlIIStEFV41+4Z6EjDRnXqvTvMmUIcOGEySqEE18juCjkeCiMZNKaBvwaIIkLa2px93QWG85+ejuJPYcqR7FBP5imqX831dT6K9pC/wevPKR+JjbCKo5OFgxa2SKkvE6i+pMTCXrPkHIL5uvt3UDUUwKSB9bcYGpLH7X/BUJicJbl0PpeKA+Wqv4TRTS6QpPGm4msqp7jopa7Fz6kA214PMJWh/N0Hcje1If0G+1JP2c9hyHq/cq+4hbSnfRjHKrKnGuW7kHxz3PUbuRjt7Q/HnvfFiMuI5SwtW4NCiTdqud1kiK9u6GBHDi2ljs9FoLLFboq+EF7bgLGxGwxGRaRMJbNzCI+Lo+W/lN6o2U4CZfIMRMdetwBIboyRestdyGz4jeOjhOonGno7H5ZpudpCczMY01lYBcTMaf1WPED6oCxhmbs4tzPCLU0mPgF9nMoI0T22QSrJos0nVEAcGNJ6NnP5rvV0PThXJT6dtvbSxJuWqcKozqvvpanTJhzjvc7r3ZMLPqJcMYfrKBTQuva4NlWBuZpSxn9KyWk= 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 13947b17f25e..aa6f77c71453 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -3001,12 +3001,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) @@ -3019,7 +3019,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) @@ -3043,7 +3043,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); }