From patchwork Mon Aug 7 23:04:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vishal Moola X-Patchwork-Id: 13345299 Return-Path: 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 5E0ACC04FDF for ; Mon, 7 Aug 2023 23:05:57 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9ECE1940014; Mon, 7 Aug 2023 19:05:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 974F2940008; Mon, 7 Aug 2023 19:05:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7EEF4940014; Mon, 7 Aug 2023 19:05:51 -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 7202E940008 for ; Mon, 7 Aug 2023 19:05:51 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 36FADB229B for ; Mon, 7 Aug 2023 23:05:51 +0000 (UTC) X-FDA: 81098842902.09.BC6F5B0 Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) by imf28.hostedemail.com (Postfix) with ESMTP id 73947C0021 for ; Mon, 7 Aug 2023 23:05:49 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=A70KAiN4; spf=pass (imf28.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.170 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691449549; a=rsa-sha256; cv=none; b=ysPE2swLDpMqujOk8VJIS3oSQLumEydI4Nkq7VoUwlFNTLWLzLGtMf13epqI0mSkmfnFAd apXn2DfzI0wYwuNBkcCs1rtYry0b0wOO+8jqMKpZmeBba46o4NR3MTblh+Dh62ojVmDhOD MKS5fBVFzx90wc4zxL9f2+a4vTJo8OM= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=A70KAiN4; spf=pass (imf28.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.170 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=1691449549; 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=djDHSA50q7R+UyBiZfR1OlHjGJmDs73q9nwlLjbVi90=; b=uNXrDyZRoBnQEY4imQnozb8ppN+e+AH1MWydxMZPunXaebY1h9YLiaOzLDA0BRSoVonqFa CvANXFayx/ZNjG3UGraub60abAPlocvKHIstw5FUWw2iVLPEmq4TYf7BCzmcnQ4x89wPMY 29mz7TNKsu82AUwHphY63VDLaXqkt8g= Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-d13e0bfbbcfso7271216276.0 for ; Mon, 07 Aug 2023 16:05:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691449548; x=1692054348; 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=djDHSA50q7R+UyBiZfR1OlHjGJmDs73q9nwlLjbVi90=; b=A70KAiN4sx+tlFlhyX9BkgJstVMLVR3VqHlhU0rx7I/q1gK7xadYJiksKbuvoZ1TCU vtYAPdjYMcohI4FUcCDaUSvo3KExkCCd8i4ZAJlLsd7GGEFa35HZ6ueu66zMG9Pjessv IfHL3oLMSZbSj2Xq1C5vYTgwWzjwrMyTCzKH7w07IcqqBjGPHvlKkPkr5yx2TrtnD3V5 vilM5UK235QUkkDj7spFvnAsyD47IB2DFcBmstKvpCiE4ENrGAtmtfggM5j3FhO6Urma yNzpPXlABiRMwP18oUglZegWP3XimvmMFaP4ALUxkyZmGiszwVYNBF+f3K+ck5Grr2Wp NJ/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691449548; x=1692054348; 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=djDHSA50q7R+UyBiZfR1OlHjGJmDs73q9nwlLjbVi90=; b=dXpCLLd6XxLwITgvSjrEcciKCPZJ6fiQzwu4ZPjbiOjCxA4i5zPzT2+t6Ba5s2rxp6 oNAABPq2jM4nGqKScOWE7FkgOWKz5dTRBF2gmR5b7j3/P79HD5dTWP3zxQseoxlycRPu XWkmY6xaNBWTvwqr3i9HpMD5m6x65evX5J0IhdqrEg6D+hgEBSooUc0mo/rxNa5WlSMu 4Y/TmVQU2Du0MP7ZsvmMEll83wIDEb9YOmCMlrJtzI/u1Tjux4naXykoa8k/8qyGYPWi YiOR9xbNXUn2gOH143SBYiPN5rcNUMlMx6KJQAFewSWovrUqVJylGBKNooGyn/A3ifwB wx1g== X-Gm-Message-State: AOJu0YyInfKlE3/7SQKxAQkWBJfeuZhEMAZNoM7oQwu2dfoCM8TWusmX u/malmHpbhw7Pq4uaTxCGpI= X-Google-Smtp-Source: AGHT+IGTzP73V6D5bA3Obfkv2DqAOxUsUVIIigLLB5NQKEC9VyMSvyrKel3HyW7I0Mz7ccDZUXFbIA== X-Received: by 2002:a25:d8c4:0:b0:d05:2616:3363 with SMTP id p187-20020a25d8c4000000b00d0526163363mr9753736ybg.26.1691449548551; Mon, 07 Aug 2023 16:05:48 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::16]) by smtp.googlemail.com with ESMTPSA id d190-20020a25cdc7000000b00d3596aca5bcsm2545203ybf.34.2023.08.07.16.05.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 16:05:48 -0700 (PDT) From: "Vishal Moola (Oracle)" To: Andrew Morton , Matthew Wilcox 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 , "Vishal Moola (Oracle)" , Mike Rapoport Subject: [PATCH mm-unstable v9 15/31] mm: remove page table members from struct page Date: Mon, 7 Aug 2023 16:04:57 -0700 Message-Id: <20230807230513.102486-16-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230807230513.102486-1-vishal.moola@gmail.com> References: <20230807230513.102486-1-vishal.moola@gmail.com> MIME-Version: 1.0 X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 73947C0021 X-Stat-Signature: 3gpj7wpnmjy7hn9djxtk3qe5tryig4tw X-Rspam-User: X-HE-Tag: 1691449549-491743 X-HE-Meta: U2FsdGVkX18tQjIUjJr0AuUZLCCKkGRcY/dhaP9/kj3NohDbGuQ/dFGBvFW1dFx4a09LlqdvyE8JWdumo9Fk75hgQ0HBrmOdELwrLoaSQ8+HPdQzXRTjji9hmsxxZlzwo7yT9Lvl4bKPTIXsb83rGdH+JB5tP9SKxkO4g8iuD114mIJI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Z4r1vKJNksnk+t3sFTTPFTD3J/AeE5+3/Grb7MBUzrSXIKNW0HClhlG8TD4smoC+9CBaOLKA/PmJJ1bn4DioSAEikML7OD9UGsJdexcS4IrNfqnh1BnwaROEKuyFUi3uC1rJyO8O4wC2KazszBerm3hIcrZQ0UDLyynQAxJv8rOPDKxh6yyVi/QnTjjaiadOtIweG8HEdAgUZpD38/WEgHh4LfVlxilGRQeg8nvEKhhsD3ck6HlwCAEJXv7tkY5KQsAnlD1FSLUgpUoPKoZ/vWNgKsUIBfUV0J2nMIHnqHVVj3iV07GsONWM/NM4XAbkVBZEBdx8aVAGtKVAtw== 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: The page table members are now split out into their own ptdesc struct. Remove them from struct page. Signed-off-by: Vishal Moola (Oracle) Acked-by: Mike Rapoport (IBM) --- include/linux/mm_types.h | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index ea34b22b4cbf..f5ba5b0bc836 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -141,24 +141,6 @@ struct page { struct { /* Tail pages of compound page */ unsigned long compound_head; /* Bit zero is set */ }; - struct { /* Page table pages */ - unsigned long _pt_pad_1; /* compound_head */ - pgtable_t pmd_huge_pte; /* protected by page->ptl */ - /* - * A PTE page table page might be freed by use of - * rcu_head: which overlays those two fields above. - */ - unsigned long _pt_pad_2; /* mapping */ - union { - struct mm_struct *pt_mm; /* x86 pgds only */ - atomic_t pt_frag_refcount; /* powerpc */ - }; -#if ALLOC_SPLIT_PTLOCKS - spinlock_t *ptl; -#else - spinlock_t ptl; -#endif - }; struct { /* ZONE_DEVICE pages */ /** @pgmap: Points to the hosting device page map. */ struct dev_pagemap *pgmap; @@ -454,10 +436,7 @@ struct ptdesc { TABLE_MATCH(flags, __page_flags); TABLE_MATCH(compound_head, pt_list); TABLE_MATCH(compound_head, _pt_pad_1); -TABLE_MATCH(pmd_huge_pte, pmd_huge_pte); TABLE_MATCH(mapping, __page_mapping); -TABLE_MATCH(pt_mm, pt_mm); -TABLE_MATCH(ptl, ptl); TABLE_MATCH(rcu_head, pt_rcu_head); TABLE_MATCH(page_type, __page_type); TABLE_MATCH(_refcount, _refcount);