Message ID | 20230725042051.36691-16-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 B7B1DC10F1A for <linux-mm@archiver.kernel.org>; Tue, 25 Jul 2023 04:21:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 431556B0092; Tue, 25 Jul 2023 00:21:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3924C6B0095; Tue, 25 Jul 2023 00:21:41 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 218606B0092; Tue, 25 Jul 2023 00:21:41 -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 0FF006B0092 for <linux-mm@kvack.org>; Tue, 25 Jul 2023 00:21:41 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id D6B6BC0C52 for <linux-mm@kvack.org>; Tue, 25 Jul 2023 04:21:40 +0000 (UTC) X-FDA: 81048835560.18.EC282DA Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com [209.85.219.180]) by imf30.hostedemail.com (Postfix) with ESMTP id 11FE580010 for <linux-mm@kvack.org>; Tue, 25 Jul 2023 04:21:38 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Dgs8EsJA; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf30.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.180 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=1690258899; 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=hoPDwBR7UkDBRqaPTC6ObTEe9OrRslO4Jma44jkeaBI=; b=PmC5o1elAX7DsSk6HuX9j7qyKAeiCcRFEExeGvoDy0DB9pDIZyp+694QZvFKCEmi0I+6wI qzjM7eUcen5a90rCaM72BwqbGh/9UC3LK4dW0vsR1+0KS0Ma9MLNP3qydfO3YUKDH6Ybru /3BXMmKQ+v5Ze4+0L+UFMSizmrO3HbU= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Dgs8EsJA; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf30.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.180 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690258899; a=rsa-sha256; cv=none; b=Zym2m2p4QivvDFzj+7o5s5rODRv2r2Ki0rKTu5Un46dpnlEyXRww3mTF5fZINPIrHajH3R DuSahrAvI21rJuS05XOvWWJZe6WbwgkY/DC95kJuv4DDbLdxVYfcJGp1VimMba22aGRdR8 6r9TBgmUaopKmCbXonRJKfP1VjRbqsc= Received: by mail-yb1-f180.google.com with SMTP id 3f1490d57ef6-d0fc1d97716so2005912276.1 for <linux-mm@kvack.org>; Mon, 24 Jul 2023 21:21:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690258898; x=1690863698; 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=hoPDwBR7UkDBRqaPTC6ObTEe9OrRslO4Jma44jkeaBI=; b=Dgs8EsJAHasnII4rJ0h10Nj9H3O9uzEKXy7LW6sf6S5UPbm7zagckuwMpdCbvZk8cU 3/jnkSDkvXi64EHRwyjz+CM8p/KmVE/9fnMiDEX0PvmK/w2bAUSZDPt5BzsyT9VmXNoR USMHwv5na3aMh8DeZjSQRwfSfPFKG4ZOnIYC2X37iqKJqBwj0eKoY0bqe0NY7N310KPu aidhbQQvpt95cN5aH+LGh5XqwJcQ2uC+n4TR20GhHOCZWT8rqRInnhuzQKk9A3ffSHvU 8/8KhU8ISd3BEz/7bIAWQZEwejG7oku5b5qOTInFSfUdh8Iny4J/y8tSxkhE65C29I99 J5UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690258898; x=1690863698; 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=hoPDwBR7UkDBRqaPTC6ObTEe9OrRslO4Jma44jkeaBI=; b=eZmuTFlYuheeYnjURoBnpB2lT/3QAowxD2klRvHMFBi/aSqaapysv9Bf2jIxUoMdpu c/I47h+Qq9os+HfEnGqL/lj5BtgCfMg2jZ7hHYCEkLL5boolQyvEmbZehYFPWSHMluri 4xTMID9+DCpUfMtmRdEpkjmTNZbc72fwfIBqLf/T2ZYOLJBdxOJ92PhvrZb1rsm7tk36 pJX/trM5WGphykWJ4SxJEe7263+h/LR1yoEj0mvngc9GIENGEO7gUrKLGIAWFwMdR0cn CLAijeHVW3Y98FYtvHAeqj2ZJwVPHBRbZOIurdSEsuCC+qGbwcDVRLwIi4gF4kPDu9EJ 3vQA== X-Gm-Message-State: ABy/qLYV+NTgwElb4QLscmXPD4lMrzd3TwwXCxNzm51PPOyg74Ir5TeU Q1RSUmtlLwg+UNvPzbKYu2c= X-Google-Smtp-Source: APBJJlF5Dk/uQrTXMbCnDdD5/bLVaLQ5W3zqcEOsqm95ohTlFSSUZBYyBU16PWFlX2Ey7GE6JXmN/Q== X-Received: by 2002:a25:254c:0:b0:d0b:9058:f660 with SMTP id l73-20020a25254c000000b00d0b9058f660mr5944061ybl.44.1690258898065; Mon, 24 Jul 2023 21:21:38 -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.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 21:21:37 -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 15/31] mm: Remove page table members from struct page Date: Mon, 24 Jul 2023 21:20:35 -0700 Message-Id: <20230725042051.36691-16-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: 11FE580010 X-Stat-Signature: xx7q4ife4j1esy3d98h6nbstxxbs8wsp X-Rspam-User: X-HE-Tag: 1690258898-931812 X-HE-Meta: U2FsdGVkX1/7S+/gg6sFXQ8LceIbYCRNHkVUH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sbTjldUPWvPbbPAEoa8GnfGrv+VIxrzGqHC9YyG7sO8zu8J7K4xxJH4LZhhOd5Y/sglpu/u3GK54yH8X2wgQJjBIkyWxFvS29I/3As7SjaByfAozvFxCsmWZBtO3db/+xnpNC9xpfBaX195QDhqFAIGkJQqKowjhgttkMs9RdeFe+Rf4eR/+/Iu91ugXau4gNTfE9ncMflpm1rvEAA9hcKZmB622cScUfFA4W/NtXfQJwcWz0Yr3c1zYrR8RjO0z+jEZBvkDqYfXTVrxq5gv4jZAGoGTD1zZqCVHwrIQUyfo72nzFYv0OrOxJadIe21v833Z/KAy73eECdu4gTtczihgs15BVI4RlyPqV++dk8lnWQkAXS0kA0ZW8YobJOQd2dRqjiJyeabiUkz3FtDecRL6boml5pcsfZxnRKI4GIigSQTAG0p/HWCdTnnJ8mBIdgEsc9NCuCJtjqjg== 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_types.h b/include/linux/mm_types.h index da538ff68953..aae6af098031 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; diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h index 250fdeba68f3..1a984c300d45 100644 --- a/include/linux/pgtable.h +++ b/include/linux/pgtable.h @@ -1051,10 +1051,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);