From patchwork Thu Jun 22 20:57:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vishal Moola X-Patchwork-Id: 13289614 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 B6726C001B1 for ; Thu, 22 Jun 2023 20:58:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 575488D0013; Thu, 22 Jun 2023 16:58:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 525028D0001; Thu, 22 Jun 2023 16:58:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 32C358D0013; Thu, 22 Jun 2023 16:58:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 24D678D0001 for ; Thu, 22 Jun 2023 16:58:34 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id F278680231 for ; Thu, 22 Jun 2023 20:58:33 +0000 (UTC) X-FDA: 80931597306.12.FCDF4F7 Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) by imf30.hostedemail.com (Postfix) with ESMTP id 2755B80008 for ; Thu, 22 Jun 2023 20:58:31 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=bxkxtD+Q; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf30.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.222.177 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=1687467512; 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=nccUzLka7Xkr4OuMpYk05u/KaIGQrzDFYQttz/vcmHQ=; b=1ovbVJsPH7qh1S40rmKfL/lUi/O7+6TkKVUMzBlyg87xUQOvZ6PtXEqQAGGJqscUe+/NN7 D8Xtd7urkrCAFFyVtfiCV5sD/iNq8HIz+pQuJj7aLavE3M0vrMwBs9uBayLLHIHa5U7kbm wOvtYGaE8HsxxoMQRYItTO2IIDW4DmQ= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=bxkxtD+Q; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf30.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.222.177 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1687467512; a=rsa-sha256; cv=none; b=ALrkjdle39f8lJDbIHranajmdgdisUmzt9EI8kfAht5GT5hvQ4YjQKRdBIAI6l4qlKWz3v fyNTu9B1mJ6cJ+PfVgxPV7G/9U36A5zX30CPh7d19CgKg6HDyNk5Zdz5pbLUWenqU9f4jp DpdBtGNbhemEVYpXTQlqy5E6swnsvA4= Received: by mail-qk1-f177.google.com with SMTP id af79cd13be357-763dc87aac4so187123285a.2 for ; Thu, 22 Jun 2023 13:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687467511; x=1690059511; 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=nccUzLka7Xkr4OuMpYk05u/KaIGQrzDFYQttz/vcmHQ=; b=bxkxtD+QQAC8zd161RKeCcg6MaoPAPE7L+CauClsYEL0Xy9+Td62VuxUGsgYxnFiq0 O6uvJ71cZ3HzaD3sn95/EOTS8BXKpmL+IQrAYm0nHFHW9S+p9vWLuqdK4qFg64CCRbun joR+Hl/5hsxihcXKPDNMSOwFhI08HqC+OD8d0u+5w8Qz5HarhFJT9jfwORvF779fEL9V zRFvHmiRuYANo66EVjgtR36nI9raB2GVIEDQNVqxyl97sNwtEBiuGHRD00zHWqOmK+wx CCZ2jYpmNaAVgCE8uPmkzzzOyp8bu94YHjJqAydk7W1+LKznmMU3DWFCBUl+KliiUs4D rLQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687467511; x=1690059511; 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=nccUzLka7Xkr4OuMpYk05u/KaIGQrzDFYQttz/vcmHQ=; b=jM9n+HtMmJA+QWG2RaLhXo8K+o5k4ngE3uibWshE2E9yTozv/pM328OjlCP7OvRF9N JZi+u0RRsWkGqNX3qXswIPJn5wmwnUEBaHqGuPSk1oCBxlIo4zVg96Z+v9vw5C8bsyeJ ufiFfBTaMWOIvklEX+27C1o6p6ZfACtGlAvcw2Xp/i9mT6R475yGQbUuIiqQeiyTQmdR oE6diRH5pAV6M82B25oBopXzVpz79qLMkfT53Cwnxskv+FpUcXNz6NB356OHSHet3jGt wQ/s7ONv460p9qdiBZWyOCC7+3w0PfHpZdzrR5NeVJEcLuzSZefPAI6SUV7wulVA1uZd Pd/w== X-Gm-Message-State: AC+VfDyApmYHkJ9M4GZAHc1nSJDH3aUjdz+nvyuSkClberWE9K3+71wV SaPY4m1hVnCJggLYMRNBeFs= X-Google-Smtp-Source: ACHHUZ4ad8Rj1cEO907Psdq+ajLgAiK0FYJ6eHB9wwgKt19FWwArd1FWX8Y4TNXwZH2eE/VH/YBYiA== X-Received: by 2002:a05:620a:4790:b0:765:41c1:31eb with SMTP id dt16-20020a05620a479000b0076541c131ebmr1410020qkb.48.1687467511080; Thu, 22 Jun 2023 13:58:31 -0700 (PDT) Received: from unknowna0e70b2ca394.attlocal.net ([2600:1700:2f7d:1800::36]) by smtp.googlemail.com with ESMTPSA id d18-20020a5b0c52000000b00bc501a1b062sm1684937ybr.42.2023.06.22.13.58.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 13:58:30 -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 v5 17/33] mm: Remove page table members from struct page Date: Thu, 22 Jun 2023 13:57:29 -0700 Message-Id: <20230622205745.79707-18-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230622205745.79707-1-vishal.moola@gmail.com> References: <20230622205745.79707-1-vishal.moola@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 2755B80008 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: snwapx4ww81qwe8g6poppc7n4g7xmumf X-HE-Tag: 1687467511-779148 X-HE-Meta: U2FsdGVkX1/lE7nJTNpMdhiSi4okobQ5vDAa0fPxsI8QollFUCAmTudH8QV+pM1Y22m/iZoqssJjhww2lNO3jiz7lNO9CNscZt90rC8rcgDDGVbi1/IvUURtoFyagLfS92iEkNDdJW2y92nVl93OgZQwhbahgoaIv4/FI/iHEHJ6TclJUGHCAAfY439/fDJbG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fVs7t/nj4mURAOk9DsiKo7uHKUlGMcBKR/e3eR8W/JiXLY1Z+NLg3MwwPtRyDki5jgKBJi/6atxTbuLDRB8eYcRz22BvC1ei2MaRNfwFzMTV2mpZ+9czNoZ5NvGE8Gj51ncTapZhc5lCKbiUZFGp8xjMED/UySfoEe1lf/CYuLUj+JXs8uuXFzblx5yhuzUmtwC2MtpmrbP1xYV0QjQqvto0e3BTHkajOLf5t9MAZAEmt120DH9dnAP/iQJR/aeCKzT1uek9Uxy0xjxMsnzwliY4Qn66rJXUOFvkMVe1sQcB0BOI5EmS7Up6g== 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 | 14 -------------- include/linux/pgtable.h | 3 --- 2 files changed, 17 deletions(-) diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index fbbe4e93a9ba..434e54440686 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -141,20 +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 */ - unsigned long _pt_s390_gaddr; /* 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 e9bb5f18cade..daeacfe3930d 100644 --- a/include/linux/pgtable.h +++ b/include/linux/pgtable.h @@ -1044,10 +1044,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, _pt_s390_gaddr); -TABLE_MATCH(pt_mm, pt_mm); -TABLE_MATCH(ptl, ptl); TABLE_MATCH(rcu_head, pt_rcu_head); #ifdef CONFIG_MEMCG TABLE_MATCH(memcg_data, pt_memcg_data);