Message ID | 20230725042051.36691-8-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 112F0C10F00 for <linux-mm@archiver.kernel.org>; Tue, 25 Jul 2023 04:21:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2F8CB6B0081; Tue, 25 Jul 2023 00:21:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2A7E66B0082; Tue, 25 Jul 2023 00:21:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1493F900002; Tue, 25 Jul 2023 00:21:24 -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 027686B0081 for <linux-mm@kvack.org>; Tue, 25 Jul 2023 00:21:24 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id C7B1F1C9BEB for <linux-mm@kvack.org>; Tue, 25 Jul 2023 04:21:23 +0000 (UTC) X-FDA: 81048834846.14.1EDE273 Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) by imf07.hostedemail.com (Postfix) with ESMTP id 0FA1F40006 for <linux-mm@kvack.org>; Tue, 25 Jul 2023 04:21:21 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=jYui+PKK; spf=pass (imf07.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.172 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=1690258882; 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=d0E0BACLvXh2vpBt6imfUOZqEuzu1odD4oW+AaIJCus=; b=uljBv44sB3+ptJFzPTEvnvWh7o5So+tMplmg7pQrYlrsd2Zo9vU8P3chBSlYKPWJb9TYin tR+kv0zXA/fq/o69WaqHqbfT2JmrCltkhe1ZgSVXmDBg8C4tpN3vZvqxKbWGKQ8C391SRY SeaR7rCkD5UXx8i1hD3lBiVWZY5kbx8= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690258882; a=rsa-sha256; cv=none; b=TlNMz0spiXhARZ8BgbM2yyJJLDrcG9QyiN/oREgUTu3KRi1d234LmufoOjCU1xSe+sb1m9 Qk0fuyDJ/DmvGoL4vblDS1XJ2R45KV1f3vKlZ6kJ+R9CXhVFYR3+4h+v/a0YOCR8pCnqTU vLTxea8KLCblq8qSogE9gmGQz24H3sg= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=jYui+PKK; spf=pass (imf07.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.172 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-yb1-f172.google.com with SMTP id 3f1490d57ef6-d05a63946e0so4083538276.1 for <linux-mm@kvack.org>; Mon, 24 Jul 2023 21:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690258881; x=1690863681; 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=d0E0BACLvXh2vpBt6imfUOZqEuzu1odD4oW+AaIJCus=; b=jYui+PKKLrYwW/9bkeBCxZuH30ZLFCfjk6k83i08YHGZs5qBvg098warmUkrhehPA7 w4YGyti6UCNUragO2itKU02HUpV/ViBpQF9TFUZFW/NNv47MTUMBLJ+3J2/znigqsRJs QhHBOUaU/0pdlJBDEn1DtnKR6Jjb52zcMeUqfdcetzMdFupe+5WkVJfD4fN5fJJOsgL0 e1lfCQXQItA0Ro7t73ofq2YB2adhnzcCWoT2HIbviNcoaPhOqdkOZB4a44aYijkjfd8z BHV0Z8ytCVZzLV7QMejslcSqJexW00RaRFmpSqinl2bowLcrU0F1887NS/OPVowYeO94 sAOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690258881; x=1690863681; 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=d0E0BACLvXh2vpBt6imfUOZqEuzu1odD4oW+AaIJCus=; b=IuYH4rv3xb5bpeciRAoYP15sGd0feACUSGI69aYILs37ysDlrESgeF63F4fZPjj2at ahZkTv16G6BgF8JLedQQxRa+xqB67DJsPebbLgz3l5Vvb4RIUI+qE7OM6z6dnojcfSA8 4Y+/At3TdwCoOkkxLzowEi2HBeuz/GSLDwzDDCiz5fHVaJCcuJrf4QgqHTnHVCIdRRYw 9t6FLAUX8aQ+P1OfoQJFE6ewQLUWoU/Dk6z4UDUKJsAr+SB8bMpgQojJxO3lvkypWYu2 sQ1Ie3HZSwAppA7VJnyDbVfPHWo0OrzSYT/2m82oG5myn50uif1ra17vj4O7P/o4DzPq bYcw== X-Gm-Message-State: ABy/qLbLTd36c/UyOO/z7Pd8IyMJf2INQ1F2ZP99qYGmtabYoouhvuvW ewZT83sRKiOYZQmyFIJRPBA= X-Google-Smtp-Source: APBJJlGCGmZmbOTlDUcCFEi74mEzBDVKNi9w9+0D8ZZZqBiNJxZc6NQL85g34qQbwNZIlG7Tv+r/mA== X-Received: by 2002:a25:356:0:b0:d0b:ed07:7f56 with SMTP id 83-20020a250356000000b00d0bed077f56mr5325321ybd.18.1690258881187; Mon, 24 Jul 2023 21:21:21 -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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 21:21:20 -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 07/31] mm: Convert pmd_ptlock_init() to use ptdescs Date: Mon, 24 Jul 2023 21:20:27 -0700 Message-Id: <20230725042051.36691-8-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-Stat-Signature: mda5r639e3btjntfnsnnq71ytkoujtbj X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 0FA1F40006 X-Rspam-User: X-HE-Tag: 1690258881-290195 X-HE-Meta: U2FsdGVkX1+XbIeiVATnDqCSXmhIA/Wa6FU9TYTlIKnyaF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vxSu2MEzS028kTjk5qb3fq3KoZw2IQHUScQio36zxreLZv7jIShLmNYa7yI8vT7TMKmgy8s4rK1vIhi52PuT74facLfdhE+2B+fWbLGtfhJBWp1cpGhAkiwt8y2NY/iuSQ5eXxVmDIE95TO+xaHARCrjMjhJlGKmgZ4T722bLP9QUR0adtVNfWmT7sUKDGqOUMe3XMIw0dYVBqNPrJwXV6YrnqhW7ZLoyYlBu1gb//DPLdNSRpKrVwiJQ5BrK15vY88k34IiNzAL6ThHSBvop6qGpy4vy5jwySZR6NzQF20GNVXDXQogLQvExgoXRj9rhVWLz0YkVcXUD9bynl9R4gaA3RXRrTrWkdtELnOYycjmlLzmH4HT1ZCv5iHE18dFjxMp/gQeeg7EFky+qcBEA1sMbW4G84EHGIPR8omRVaqvCKAaLMkH1fHRRk6LVoZ2fyeZBXB2BuOi4mngWIEtruSQhfsSRtXCa9f0ByCq2Mzxc4QhDhRKW/t9aZEXThOqfNWVjzZ4Ny8S9qhNm2SpAxbboyjqA= 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 c155f82dd2cc..52ef09c100a2 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2974,12 +2974,12 @@ static inline spinlock_t *pmd_lockptr(struct mm_struct *mm, pmd_t *pmd) return ptlock_ptr(pmd_ptdesc(pmd)); } -static inline bool pmd_ptlock_init(struct page *page) +static inline bool pmd_ptlock_init(struct ptdesc *ptdesc) { #ifdef CONFIG_TRANSPARENT_HUGEPAGE - page->pmd_huge_pte = NULL; + ptdesc->pmd_huge_pte = NULL; #endif - return ptlock_init(page); + return ptlock_init(ptdesc_page(ptdesc)); } static inline void pmd_ptlock_free(struct page *page) @@ -2999,7 +2999,7 @@ static inline spinlock_t *pmd_lockptr(struct mm_struct *mm, pmd_t *pmd) return &mm->page_table_lock; } -static inline bool pmd_ptlock_init(struct page *page) { return true; } +static inline bool pmd_ptlock_init(struct ptdesc *ptdesc) { return true; } static inline void pmd_ptlock_free(struct page *page) {} #define pmd_huge_pte(mm, pmd) ((mm)->pmd_huge_pte) @@ -3015,7 +3015,7 @@ static inline spinlock_t *pmd_lock(struct mm_struct *mm, pmd_t *pmd) static inline bool pgtable_pmd_page_ctor(struct page *page) { - if (!pmd_ptlock_init(page)) + if (!pmd_ptlock_init(page_ptdesc(page))) return false; __SetPageTable(page); inc_lruvec_page_state(page, NR_PAGETABLE);