Message ID | 20230725042051.36691-5-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 C917CC001DF for <linux-mm@archiver.kernel.org>; Tue, 25 Jul 2023 04:21:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 590726B007D; Tue, 25 Jul 2023 00:21:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 51938900002; Tue, 25 Jul 2023 00:21:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3BAD06B0080; Tue, 25 Jul 2023 00:21:18 -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 2DDE26B007D for <linux-mm@kvack.org>; Tue, 25 Jul 2023 00:21:18 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id EA7E5C0C4F for <linux-mm@kvack.org>; Tue, 25 Jul 2023 04:21:17 +0000 (UTC) X-FDA: 81048834594.14.33A56ED Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) by imf10.hostedemail.com (Postfix) with ESMTP id 282B9C000C for <linux-mm@kvack.org>; Tue, 25 Jul 2023 04:21:15 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=p9s9prTX; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf10.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.176 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=1690258876; 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=IUMUqbW/uAIHfn0G4toP3JCuPKsaNgXF+JjYaBSaBaw=; b=EwEhFv1u/gkdOTy52+FYX2bQobdNITF7bYfd/fDu7I4mw7JXLtb47sRKUABW+NssU3Xlve pBHg3rugBwrn9ZBR+csZBzXsUIxjWTmVo7ZPcED/QW8TicdSMBdE6WAuv4tiGGDgXJ4XrL 7zDD7ACJtBFEWxdsj3QiKv+uoxkz608= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=p9s9prTX; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf10.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.176 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690258876; a=rsa-sha256; cv=none; b=p2HeYlS805BhnnTDXWlla3CKb3gQxmJ1k8he33SWbusnnIF4NeRvVFTFsjLnnO9YlmxTJM MBJXEfHzuLknaFcLh9jL+EScXi17aJzu7jmlCggr4hn1OrJGn/xFG7cmWXrJ/2cBnRrRJ/ IC6VRSSs1VVKb7pkA1qUalzKcb4pQDc= Received: by mail-yb1-f176.google.com with SMTP id 3f1490d57ef6-c5cf26e9669so4296594276.0 for <linux-mm@kvack.org>; Mon, 24 Jul 2023 21:21:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690258875; x=1690863675; 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=IUMUqbW/uAIHfn0G4toP3JCuPKsaNgXF+JjYaBSaBaw=; b=p9s9prTX9rn/wpC0IRJR9+orYvMKxIQqYiO/2qc1ucIOxNaOErt5vfdpNKxEU6T/vv +2unp610u7/KZK91WoTQLcBH/VtkD3XUQxHC44CLkqpLaHmHFzgBPOO6uWyO/3jX9Xgf 76GcUW4UU7BHeMr+SY/V25wW6PaanozuCo4EhC7wsdhYIlQKIrWatw16Z/wgKznB+Orn ruoMSNrGoRWxyM/OJxGteQSORJl7RZHeZVq6QR7pMySplhmG3+tZ02+FH1KXAFJgXdGU XCaHvNOv6BykhfTtnLqNaZvGHZmQ1vFu3nRlDk8gtK37Li+LTW7MffEEWNWOsyB37y52 60nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690258875; x=1690863675; 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=IUMUqbW/uAIHfn0G4toP3JCuPKsaNgXF+JjYaBSaBaw=; b=GBsq5YDmWcqBlE11wHwfVlrSeNaCAzNAW7xu2Szmo8vw4tN29u+iWZAzpo0m66hZHU ouNJH3VgMaBp5iAk5WUGifTaa72pjkGb3u6oLPQInoIywvTo+5DkKko9862C+6Ewg0V2 nMvmUTV07ZSRmooTtuYkeXAfcMUjecu++GR1OKchnDMBvFjhq7IwKf3Shz3UZfHefxMr Pofhk/3kBUyEtIlrRdUc/IGV0Wc3/GZQAYB8a8h2/yh74cNkSE95ry7P7tUzZakU5Zpq a6QRljgy6DEnX3Dfaef+DZDrulx0L3rEQ3o9Wv0uvh5LrHKN+wCTaOZjNiKU+HeLGx08 24qg== X-Gm-Message-State: ABy/qLaIAaEmr3fmPTPJHzLDxNCIr8u+A0qB9IXB8lmpAr7dn/vhpBqJ LQrS36D681th89AVmW1kgss= X-Google-Smtp-Source: APBJJlEMSP0J8OF6O819F/tTFVo5KNWedtuWn+u3qsGgdRhWZk0PUYcaZVFlVCsLViSNb2GRnqh20Q== X-Received: by 2002:a25:6b45:0:b0:d10:68c5:233e with SMTP id o5-20020a256b45000000b00d1068c5233emr4343866ybm.60.1690258875202; Mon, 24 Jul 2023 21:21:15 -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.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 21:21:14 -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 04/31] mm: Convert pmd_pgtable_page() callers to use pmd_ptdesc() Date: Mon, 24 Jul 2023 21:20:24 -0700 Message-Id: <20230725042051.36691-5-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: rspam09 X-Rspamd-Queue-Id: 282B9C000C X-Stat-Signature: r3annyre7za1fpop3fmda8jy6xbbezbf X-Rspam-User: X-HE-Tag: 1690258875-64263 X-HE-Meta: U2FsdGVkX1/Ib93UoTOhlFDa6LfMPkfKnorfq8mgO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CEBthqQkHJ3/PNBH9K/iWslSLfiVjFseiYbYI45TRqgqB/aPIPesbsbAHIpAebLQHwlu8tbRbzxjErIllQmY6zjpc5TqKTTqUjQXfANJvyUswCqnad4AXic1sER6WIKg/+rSL499Vj+dCWbbm4F7L91rAeb1gcbplsCKr8zLfdO5Dkv8le6yjcQkc0cNpaU8GSt+W3KE6tgBH0awNzVyTQaIGwjAD4hnCMs2eZKnZxL5t6HTr2qFGeuWejn3s3zwzKWkHMpDm/i3MB+ubiRFL2dN7bUpOhIFKE8m8kkBTr8o61J/e+WV39QXiH/hT9S5klXdXBzJVg5VqguRAmptFD/rSW+GynJdyOSAY9s+NsHkVin2Za+WoUH9wiVl1WoSVST/jtOC2bcnHZAgohM61fQfumOEROVVYqYY6CGBGnOTSNAs5GlvAWYKXGHmsLT/pwRbE9HGWP8/3X4JBwMDW+1E9gKM1tpthbbnTk/Wy4xqVAhOuOF/KiCuVtUwODVhDjNzzCHkgWbeEOkQCpnxpM= 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 3fda0ad41cf2..bf552a106e4a 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2971,7 +2971,7 @@ static inline struct ptdesc *pmd_ptdesc(pmd_t *pmd) static inline spinlock_t *pmd_lockptr(struct mm_struct *mm, pmd_t *pmd) { - return ptlock_ptr(pmd_pgtable_page(pmd)); + return ptlock_ptr(ptdesc_page(pmd_ptdesc(pmd))); } static inline bool pmd_ptlock_init(struct page *page) @@ -2990,7 +2990,7 @@ static inline void pmd_ptlock_free(struct page *page) ptlock_free(page); } -#define pmd_huge_pte(mm, pmd) (pmd_pgtable_page(pmd)->pmd_huge_pte) +#define pmd_huge_pte(mm, pmd) (pmd_ptdesc(pmd)->pmd_huge_pte) #else