Message ID | 20230731170332.69404-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 11AEFC04FE0 for <linux-mm@archiver.kernel.org>; Mon, 31 Jul 2023 17:03:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 348636B016E; Mon, 31 Jul 2023 13:03:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2D06C6B016F; Mon, 31 Jul 2023 13:03:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 122F06B0170; Mon, 31 Jul 2023 13:03:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id F15896B016E for <linux-mm@kvack.org>; Mon, 31 Jul 2023 13:03:56 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 3D8C91A0AF6 for <linux-mm@kvack.org>; Mon, 31 Jul 2023 17:03:56 +0000 (UTC) X-FDA: 81072529272.16.F633BD6 Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) by imf24.hostedemail.com (Postfix) with ESMTP id DB28D18002C for <linux-mm@kvack.org>; Mon, 31 Jul 2023 17:03:52 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=YUReldkg; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf24.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.174 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=1690823032; 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=XyGMUkk6KZOhyc0tzOX04gqiphUgXhEDTXOwRbR0u8lEYodTnFzlAZ9jo2AorxJLDMUylZ ImkchmZ4YfNjbbghJyqlchGLSszuPwV+dpvkf/V08mbMaaW/z7XCvjGhL4IE71fNkGbmgd r2f4f2VkdKitu7ZwIXADYrZnEkeGVMw= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=YUReldkg; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf24.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.174 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690823032; a=rsa-sha256; cv=none; b=tl+yjrYbAto3h0TSfSH1KrxVGNU0hH1WS6RAE1qgc8tpXGn0/vkfOade2PczwL2TLUfUD+ 6qV/1mTJH5sS303ZB6kzgS3IgAYmTYtDeY/ucf8eDUpZYzoDjcWZJPXwyzlHTFNYu9xVx+ TgFVNCiG7oGUIAObLPfJkR6U2zClXps= Received: by mail-yb1-f174.google.com with SMTP id 3f1490d57ef6-d08658c7713so5042696276.3 for <linux-mm@kvack.org>; Mon, 31 Jul 2023 10:03:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690823032; x=1691427832; 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=YUReldkgnetLqvGL1NS71WdWnAzNWWYQnltnVm2rTkEUcOO9WrPWjz/VupfwLsV4R5 O5U+HAQBX2TEiL7rUmM64hTiM4qIIq6sg/drG9M/BGuBJ33Wydz1s/G+0U+eMZJumoRB f1161HPnuyBRb78dTfpgaCSHu9Qo0gegUmxh0kC4FT9lRFkm1YwjVBx9HbpfTIAYT8q1 zvd8Be582ZnNdhPs3i3IT6jC/uh09at7IMfH8Z/47sZBuFG6ajCrrTeAaD1eGKL98sQ4 Picd2DUZ0mNQhUFLQyvKhXnHde4rCRB/z+5yBj02B6B5K38q9rbIBp+H/OlzOyaGOHuW 1Lvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690823032; x=1691427832; 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=c2zxEDz6DMiDJaTaqwtnjvqL/lWoAeh5oQsjNgPSFMoBWWGU5OWdlvcAXcZqFJ2CnH mYNmIhhAkl/RVO7CMl5X0wWT1TRin6tofv7405p8k4gcvNzlCjgSjPkfqQHMNh5Hc9Lf 0sML6Xj2dyE6RvvsE3uHjKWjJWwHXUg9mIk2MSkKJ6fl0aSMrujBKtbaKVF4gODahn81 EHkFLgn1bOOUUC+5wUrjwKw1mzBr7M86LOy6lkfHy/8+45oN1BTCx0L4dwlsp0sK2zVw o1SdpGEeVoLp6wU2r8V2R/9uKZbV4hY5ANgrpwdbnoowsaIoOcWghznZ4pe41VZCFqVk 4wLg== X-Gm-Message-State: ABy/qLYUOFzpj1jW+mT44DAHl4lWfauoBDM1MRfx3xRZqjFIC6yMKCwf Ia4d5t6i9PJKP2dtybkrMU38I03Fc/mNeg== X-Google-Smtp-Source: APBJJlHh2ZxIPqvNCWcG3uzKtYIqmu+SYBCgcUqQThaKL5dLb97zd0arq7kj2mXQ9GbTc2zqN8ZRqQ== X-Received: by 2002:a25:84:0:b0:c67:5adb:36fc with SMTP id 126-20020a250084000000b00c675adb36fcmr11678833yba.38.1690823031787; Mon, 31 Jul 2023 10:03:51 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jul 2023 10:03:51 -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 07/31] mm: Convert pmd_ptlock_init() to use ptdescs Date: Mon, 31 Jul 2023 10:03:08 -0700 Message-Id: <20230731170332.69404-8-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: DB28D18002C X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: ietjkmqgq4q3nuekp8w3et6y51e4uq76 X-HE-Tag: 1690823032-190229 X-HE-Meta: U2FsdGVkX18rlOJX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jF0hFtoAqqYdOVzhoWNzpSGO0zcG9YcT3uq6HW8wFWCigjLmxo4s3LqcUY2Tjd+52nZ/vPy/zI48yDUO+rBWDyeOxkMVFRFnVndEltNsT95bjhVtfNP5gD8UaryWUeKVE3Kn6BT+G580Und0IGDcVy8vMXXas8JYpWozB0olWMGXAsFzQfoseOjcItY8/pQC2GNDE5GES0iCGk61hDuyqpesUKdDcqczceuVFT2RF1uVZnzXx5AlX8Rt4zDGHZArZ3bMgpij4JW0v1b+bxajqBsZD/jxVtFdzLTjhGAt64os/AVgAsPc+7YcYk8W71JhBnYUno4RtFSjfPaQ/bAxPPZwKm2HkmifkSF4NM5kzMwt82PzpktNINE6v7YNRmopS9BjLTGFna4JrZUwPN1p8bL49DvcsGZuxTWDQeSO95XBJ+aHy0MtvwMLq9R+UQUhq0a4g33j5VPYalf0vJ10clcE6LBC5ZFnlzbJqNxea8w9xUjF8GM2j/ZsjTdZxtZ09i/21Jx+G+OgwrnsjxI0bTued6hQzcOeV8qdsQuHzm/QRIAXg= 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);