From patchwork Mon Jul 31 17:03:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vishal Moola X-Patchwork-Id: 13335115 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 86EAEC001DE for ; Mon, 31 Jul 2023 17:04:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9D74F6B017C; Mon, 31 Jul 2023 13:04:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9878C6B017D; Mon, 31 Jul 2023 13:04:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8284728006F; Mon, 31 Jul 2023 13:04:12 -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 65FEC6B017C for ; Mon, 31 Jul 2023 13:04:12 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 2261E1C9490 for ; Mon, 31 Jul 2023 17:04:12 +0000 (UTC) X-FDA: 81072529944.01.D6D61E5 Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com [209.85.219.169]) by imf27.hostedemail.com (Postfix) with ESMTP id 5E0614001E for ; Mon, 31 Jul 2023 17:04:08 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=OAbNNQBE; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf27.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.169 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=1690823049; 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=yj5+Cp/S4wECb6PA8GtxDdLsgs4NN/+PuZLDQx2gCPz02WP/zP6F19M/0Vkq+6TfwlujHC /bI+Q2Dna31UFCStyHz9vLYdasHYOoXiT7IXRU/0y1Tlrav6kQVJkkjLlwR5zS8wDhbtZP 7ahBEN4/sAg62ot7hfRIM5ZJ2460O1o= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=OAbNNQBE; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf27.hostedemail.com: domain of vishal.moola@gmail.com designates 209.85.219.169 as permitted sender) smtp.mailfrom=vishal.moola@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690823049; a=rsa-sha256; cv=none; b=vEA3lUylRw2mS//v1Sp/vufQ5NoHSZ3iUEZyMuEborya9FaMZMe/pNLq9rVyPCccACaDik MvsxOXw0N1CCqA3aOqU1Ld47niSibEVSOtufK26nMKeozq0TvRGXuVvMDSrOUCVerB9SY8 msY5W3q/Qk7EAzC6yFDRWtpMmG/i6q8= Received: by mail-yb1-f169.google.com with SMTP id 3f1490d57ef6-d09ba80fbcaso4920651276.2 for ; Mon, 31 Jul 2023 10:04:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690823048; x=1691427848; 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=OAbNNQBEQXMPsZxDdWqbwpvcbcC9brAkDdGEYZZSxmgS9fU/KaG8Vdw1eojjPxifHR dAgpTgfKnNikXik7mZu8QxravKkUxiIYGVER2PrkOqRriotSLF3T4LElpBmapph98PeJ CgANJas/sYwEcas//U7Qxkrb0B57mEkHjJFVkSuOLhuhDwIKccn09v9YrEs6kDdqLy4T Ieqhh+PAHMUzo7yeR/3qM+URoXymEQxqZDFSNR+LNsEWiMnR0aGkUyMFjyNfNubh1n44 qou+GBpn9D5SWlHqMqT15mOyIOurWshKH34ovdJcmzrKIbB8XOImOByAI5BjQB0TmzE9 Sl9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690823048; x=1691427848; 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=JhZsMw9KViae78Ct+QtHvmzwrYH7/GSPUbpgawAGFl7+wXElYiH8tPQ41Cm3YYWpnv l7JBiZi4mw2gbU1PJv2/nYkQVZQTw8ZKxwqnck5hQc5852V8vcirTZ/DyxZ7dUXmZevm nep6QxAMJY7rXvYxP0aQ8DaPCoMo9ydkYwcX8NMWkm/JimoEneTDdYYrH5Tf7DZoFeqA UCGsPKmxCA+bQ4owf4UhBpoVsAppbdF72lYU/EuxuF1L/gFLyXvGDQF79KPuEKaFMe/l 0xxafQjjNyaN3+iB9Dii54MIYbPfZ2PyFbJbdgcbg6vPY6sCLkF9EijogiTYa45yoKM6 apKQ== X-Gm-Message-State: ABy/qLZeIvQkdBwprOyKnSdAOqWHZHzbJlOPGEoYDS1VNyMFN4/0hlOV H1jqu1o61m3/gGVTmBnGHwM= X-Google-Smtp-Source: APBJJlFKcIKM/utvbiiE7uhCLg+4EyOcJ7OdfVdmr1i+MWfEQcViSbVO+c8ELmOI+htD8mvz1eRjLA== X-Received: by 2002:a25:f626:0:b0:d10:d237:b03d with SMTP id t38-20020a25f626000000b00d10d237b03dmr9909607ybd.53.1690823048043; Mon, 31 Jul 2023 10:04:08 -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.04.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jul 2023 10:04:07 -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 v8 15/31] mm: Remove page table members from struct page Date: Mon, 31 Jul 2023 10:03:16 -0700 Message-Id: <20230731170332.69404-16-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 X-Rspam-User: X-Stat-Signature: z69cpo7mqun1mdh56qf854xxn6tskrqa X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 5E0614001E X-HE-Tag: 1690823048-443284 X-HE-Meta: U2FsdGVkX1+dnOwUkMw/SMvoI4uuMzUmGh4V2A1PP/mGAiqOxWXyhJMugD2yZTHwFPyafOyUKrh4LQgwmFNK6vtFbTmmVPjxGLb/Fu6eBpIWbKuXefSViFfGLr/da6rytk8oefVoM+1wQMTtQZWVYAeDpl1Uj8NV2LvGvB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AXS45Ye5MQsnrBAWWHww95+0aOwU6NkyA7lMd+PtVYHlY56FsyCO62KyIvJOWX+SYq13jpGCBYZDkdFWnmcBmjopu+QmLuH3txETCsP0AfsPave8k7/rP4XoMjsTiYemu+KchxDydX8IElcMz7wp2cqOAHOY3h+XMQHNRM69TP5OYqUpZEGrWbWwGdOX7UuopnEkwwlzgmf3/4RSz60jm/Su8unTj1xQpyj8FskeAwh63ayX5ETO+ohrOR0U05n05QdMY6JrmV7xELDJipzl0hnDmeTjzeTCJaijjVAo7xaB7OQqfCCBXVPW1I1fCTIPw7ev6clYCazMDXzRUhCmTn+gs8MhA== 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 | 18 ------------------ include/linux/pgtable.h | 3 --- 2 files changed, 21 deletions(-) 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);