Message ID | 20230731170332.69404-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 1CC70C04A94 for <linux-mm@archiver.kernel.org>; Mon, 31 Jul 2023 17:03:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AC18E6B0167; Mon, 31 Jul 2023 13:03:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A739228006F; Mon, 31 Jul 2023 13:03:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 939716B0169; Mon, 31 Jul 2023 13:03:49 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 81FE36B0167 for <linux-mm@kvack.org>; Mon, 31 Jul 2023 13:03:49 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 4CA45120291 for <linux-mm@kvack.org>; Mon, 31 Jul 2023 17:03:49 +0000 (UTC) X-FDA: 81072528978.26.92B569C Received: from mail-io1-f45.google.com (mail-io1-f45.google.com [209.85.166.45]) by imf30.hostedemail.com (Postfix) with ESMTP id D864980032 for <linux-mm@kvack.org>; Mon, 31 Jul 2023 17:03:46 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=LO7IgtMf; spf=pass (imf30.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.166.45 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=1690823026; 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=x773zQ3sBY9zn4606VKWW7rc0lGR6KP3F3Mv9k3nmEckgTF5HpPOEP/U93RmY6Euo/V2Yf 31CknRDJAXioSTkNV4cS/JKFEBAtuA75XTNQodHUHvCApYlpyDU9C9+oUKuTpL9BG9PMIx YSO899i89NV1seBWdw7ItBVOGAN09HA= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690823026; a=rsa-sha256; cv=none; b=nfje7MO0qalNkuym167ybgzClnDDCt2/m+HY/kddRB75hGINB0JjE6d4K5ehE3KURCF+is M1mAhkixs1cw6O4n+AoxTX0P9/gl5NdDtBuVfGRmzRi4JjMJglvHyw9M9vYeEQQrsIJ8xe /esgNoyTxNt5lMw1lZinPNi2+JzYB/s= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=LO7IgtMf; spf=pass (imf30.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.166.45 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-io1-f45.google.com with SMTP id ca18e2360f4ac-78bb7b89cabso253100339f.1 for <linux-mm@kvack.org>; Mon, 31 Jul 2023 10:03:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690823026; x=1691427826; 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=LO7IgtMfV7D/5pieeNhzhX7jbefImFR1TuQgjSMNALZjO7jWhqLJ0NYlGohhp9vNEp P7qjRmM9tu3EiZV8IpnwyOsR5oR0G2xN8+6lkb99Xp3Pq2LKGQ1pnDBT3xTub9FDUFeD NiuludkMelWGqpPq5Si9scPBohunGQ7wjCbjn1MG6IHkoKqu0G6KIfhUmk1zbCODarzf JF+LluYmZmW6+nXXKHPD8kZWEQzzXdWA4gTgt31gpJPirIvHnT+QXlpNT9xuTR/Ob7I2 6KYVvpK8cyw965ouTwB0qJzxRQ+l2kkvuwks4w7hfsZgPcLfFUXNyqFPQAdsNQn7UH4p LAXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690823026; x=1691427826; 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=gU0z6MDEmI24YMO7qPHUCJqo/CBGgXtlfdQgAb+BSIYe0J4lDYTTlpHlOc4rbCpAna M3+RSH1HuzjazpUMmBXS7L9mhj9/itpOdzslFJx1uWUkyeeMk7MpErAPc/eUXE+JQBDC jcZPbQeE4Se7JwC2YWC+h5gWMrU6pYYQvK4ITKDeIC+QEaGrW0ZdCTK+NFap7NSFvXRE NdBv4kttQNUccIHCCLHCuQHbnUeQcGJu05Tc1v82lVA1/n+xrGE8ERIl1aZVK9Coy/Vh 2SRJJkw6dj29i8JYEw6os19nfAHal2tyiUoq6/4NP8zDxPa6Cvt7bChIUJYjYS2rk5JE 2icQ== X-Gm-Message-State: ABy/qLYF2MrQvySWPRiB/7D/qG00zONSzeCoxzmXmyq7HOsnhVQlvHru f6SkpZvRDejTpwuPUN10ji0= X-Google-Smtp-Source: APBJJlEWqZXE1sICWadhT2wO43hXTa2FHUgzTzYXN3XbSpmzVLjVyMFNIil8bQaSo4X4bLn1gewpKQ== X-Received: by 2002:a05:6e02:924:b0:349:2498:ed90 with SMTP id o4-20020a056e02092400b003492498ed90mr1956382ilt.30.1690823025849; Mon, 31 Jul 2023 10:03:45 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::16]) by smtp.googlemail.com with ESMTPSA id x31-20020a25ac9f000000b00c832ad2e2eesm2511833ybi.60.2023.07.31.10.03.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jul 2023 10:03:45 -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 v8 04/31] mm: Convert pmd_pgtable_page() callers to use pmd_ptdesc() Date: Mon, 31 Jul 2023 10:03:05 -0700 Message-Id: <20230731170332.69404-5-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230731170332.69404-1-vishal.moola@gmail.com> References: <20230731170332.69404-1-vishal.moola@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: D864980032 X-Rspam-User: X-Stat-Signature: 1ui8df8pj5jrm3okntowcsn56mxftfbd X-Rspamd-Server: rspam03 X-HE-Tag: 1690823026-760041 X-HE-Meta: U2FsdGVkX1/d4Q10xEslSj8u6CdZpHQXmawXddWkzLPOBW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Fjm37aPPx+59Zz6RptijZPb67W43QrUhFuLK8Iuuj28+/065ctvMhpPrXnEMr6ud15CytvVdrSmQvRIvfOKT91frI89NMwfHgil68dL45ZYQzod9HwWdFRbJZj7Fp2gbZVCegzGk1rWvR8Qd9Mu9vquCvC/9pMqtmKrejuZASFIBTQIO4uEoj5i60ImYiHOdllBLhhl2d/JQ9qk4yfU4rcykIVOADIMxSz80p0GhYgoiPv/1ybzT/qWFbChuWPMzYRbh46d63VpxsN+05WpMPQj9RDxfe2Jgk5fcJgzAkASGy0iI+TWrQTmeSzZvX2mwZKvYGCq7YiEOBGdk1BEW6wXbFNCdcW1zpUW8r3sQvbJHmG3Fb7RdrOYr18f+5NDtSma4i1LdKLCBP8yMa3RMHL1/VDcLhnn4Jrv223Z5+iRIBVZXn1YSDISx4/p5SAa82mjYI/yHP6d43zJE3n3QvrOPkhbIWHkF+IWIx8lJUd7jFtjBaoIwp5qUgCC4YWt9/p971O6FdRLVf 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