Message ID | 20230627031431.29653-11-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 DB0EFC0015E for <linux-mm@archiver.kernel.org>; Tue, 27 Jun 2023 03:15:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E790B8E0005; Mon, 26 Jun 2023 23:15:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E283A8E0002; Mon, 26 Jun 2023 23:15:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CC9498E0005; Mon, 26 Jun 2023 23:15:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id BB8898E0002 for <linux-mm@kvack.org>; Mon, 26 Jun 2023 23:15:31 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 9C5F01204B7 for <linux-mm@kvack.org>; Tue, 27 Jun 2023 03:15:31 +0000 (UTC) X-FDA: 80947062462.13.D06B03D Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com [209.85.128.182]) by imf18.hostedemail.com (Postfix) with ESMTP id C17081C0009 for <linux-mm@kvack.org>; Tue, 27 Jun 2023 03:15:29 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Lg2sjw4F; spf=pass (imf18.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.128.182 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=1687835729; 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=wSwuU7fg/k+TT5PagWIdYLap7GxOydHG9fnVI01D6B4=; b=yaJ9jTcw/sdBsgZhMdWT91XKecUVRgvH+MEbxvYDDDbVXgEVk8xkNGj9cThIlb4svC7JGU p7VbviXNaQAMlJrLNXGhNvB78QKpdalH/4nQeTzWDa/Ac7/wS+7y1AqStnFiEeTL1M4r0i Izv7w1qac5w0IrOEyRJi6/rvGieV0E0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1687835729; a=rsa-sha256; cv=none; b=7dqfCLBrZgNStgcxcUgXncMHi3q2pxsgq6QIIeReT9L12DwLzJlHW0Iu9qcLM8aF4m71I+ 5dUhBX+Ca210ysa487G2As8pg1IHWdnfnlqZTnTK/p8k+JUTfMNiIzxemwKySwZi5ocTsV 9qPW0vpZxlTQR7wUz13OEQRunZ9z46o= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Lg2sjw4F; spf=pass (imf18.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.128.182 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-5704ddda6dfso44575267b3.1 for <linux-mm@kvack.org>; Mon, 26 Jun 2023 20:15:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687835729; x=1690427729; 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=wSwuU7fg/k+TT5PagWIdYLap7GxOydHG9fnVI01D6B4=; b=Lg2sjw4Fq7Jsh/1bPb8/Bz5bb4WbWygT3r2OYZVXGMBEwfozbqxm0/F6bIElAKjdHD k9tw765etUmPaJavNHOgRAh4TrN9WtYkyFJDXO4e8zB0CLQ7CKYG2S6Z4giPdak3TlLV dBQDIQS2mzx3Rkho31FJSGH9B3yVhFoSm33zMOn6yvA7Um5yH03kqWlR3ymYgVkxmZrE IJEFqdSDC0V+0/+0zxMFLR8Zuzl0eiDJ5KrxbBEu73g+J0vEbUyjW5NugtcJ2jWIZ/MO 3IUWIpYlYW1hiX8BTPI8estSfzK1mYASEDhKfgKz4greHIhYdQhx0bK/LpN/7ezGhpY+ FpXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687835729; x=1690427729; 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=wSwuU7fg/k+TT5PagWIdYLap7GxOydHG9fnVI01D6B4=; b=a2vWKE4s4x/zKdYAivC1PZYkkG+gN8S40A6c9yuqFGnSna6G6tQh66Cv6y7zrFIwJd OwzESU5u1JBbuckYaxvnxjIPXgbgAqfZQy3FkHPnV3R7Ip9iiXxa4wQ2ZkEStPHPw0/q dEmV6aMpg9HfCL6EhgeDs4mBk46C1N/hv+cgsULrItXMgWf0gWA20m7QLxKqCNDXwSpc 1xj18l4ZuI5pom+assj6qc+mJxYHrnDex8QYez5wJkvXibO196p/TC0z0PryxACzpV5m Kg1PAocsXj/8ztSlCOLKLy1zmCsa23fmlKuC+vwTD0WicwzwS+xk/3YmdMW3qQlw5VBl q0iQ== X-Gm-Message-State: AC+VfDxZFkv4Amkbupn8sD8TrbKu7QsSeHYQsUPHExona3Rcne1aOdJA ZXdyKvvvai9v+ybVD4dD7dY= X-Google-Smtp-Source: ACHHUZ46AY3BqwTWqQUYpGbmhIWT6fwcR58AoQIOUKYPJMkYvs0jOnx1fxcN7fC61p35DP7uAiDexw== X-Received: by 2002:a81:6887:0:b0:565:cf47:7331 with SMTP id d129-20020a816887000000b00565cf477331mr37299896ywc.2.1687835728818; Mon, 26 Jun 2023 20:15:28 -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.15.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 20:15:28 -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 v6 10/33] mm: Convert pmd_ptlock_free() to use ptdescs Date: Mon, 26 Jun 2023 20:14:08 -0700 Message-Id: <20230627031431.29653-11-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-Queue-Id: C17081C0009 X-Rspam-User: X-Stat-Signature: 3dogizsn9b5iwn9d8bapceurpjrn4qdp X-Rspamd-Server: rspam03 X-HE-Tag: 1687835729-474352 X-HE-Meta: U2FsdGVkX18hxQObz9BUw6LK8Ous8SJQDcSQQNFt0kW6skOz33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YTuzL6Wp7wAZ0zckspqB/u/AouJwI4OTYnN/U6crlVwORyfEczg3Soqs1C6TBrl4NkHN/gRYnW2I5cyJLuUhLljAoFCWzZ3oknsa94mUsAJxPkkWCisaxAJEUSOm4lgf4Oa4VdrpK719ZI+OJDjkeMTdjXntN0VPqYM5jXubIvGw7p6WtmO/mU0UjPwL7oAf5Q4BbV8OxIMEovklhzxFMxxhd05VM6U3LK7okHtytJiTftwEy0GHFIceYJxapHAtidkz5okYz0KiDSOkcTXBp297cpOwXbIK5ezWJbfydejmqYgoje68Jje3PFXkQaIXWXKwJsTobb2k8VX14dZnIEZf2r2+YlJcenNbB2y0p7/LYzOVkBZidz1CpVV9i59Pgou8fg4EwluqlKHMiXL6yd9XRYtEFYz2Uz9kpuJgKbqZumD+T6uLQgcj54aFl5FkBODOTA/g3bjo0Dshla66vEYpfi+ojPcqevczHUMisDy7RPhntZfuTAaaCgYbgC4+kpmpwhgykXRKLC5hZxvqgTHeazQdme+QRwDynvX8vXryxJGLHrKJzqMR/+rQ== 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 4af424e4015a..0221675e4dc5 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2934,12 +2934,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) @@ -2952,7 +2952,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) @@ -2976,7 +2976,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); }