Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1764692lqg; Mon, 4 Mar 2024 03:10:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX+y5Kaqd2xQ++vKhFXcDdOWqgLuj21ALo7bp4BlyX3X7gvEixOEyv+mMNljcFgHDGxeEmmlZYAYi8ZnwlR0pUM/1mGmz/50OhEx8fb6Q== X-Google-Smtp-Source: AGHT+IG2h92n4KjKrhLCP6En+yY0mCLesbljI8yodW+R7hfFpacrjqrt4GbYNABrFDgV9Hx9IoNA X-Received: by 2002:a50:9558:0:b0:566:47ef:29f with SMTP id v24-20020a509558000000b0056647ef029fmr5890419eda.38.1709550627381; Mon, 04 Mar 2024 03:10:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709550627; cv=pass; d=google.com; s=arc-20160816; b=mxxJIGmLL91IhS3cpzmjJnOaPcWK7xJ+MIevzV+LZNGiARXHcZ/BLApk1HHllMeQys jaqLzyDjQ88rxlAXYU7VD2fuJw0s/zy7JoZA6LXRT6eQ6gcozqiIjdGXk1Pa2E3yjv5s t3LR4xFyxYvkmtSnHit/JnuWFHYA1EF934v5T9k0Nr+kJF5ajj/65cJNJMvh/CCRVo4L 4Tpg+rV1HZreW/VpF3yqOAOVZWE6w24tghU84jzh3tQdFfXWuPcV2KzTDET/rq9oMki9 /X2trb1Yt1IqDeLMKAVWHbpiO+UJmZwBvxzsxCkhpCpUcE3j+tie6QfkaHvbg1gG9JcP za1w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=MVpQb6gnXjWzSd7/4z2SbTtHslRCQp5WpZHkGdzmg3w=; fh=SXkgu47vhbNkpdFihk9DikRw+nrtyKXpRv45Fm/61cg=; b=OZQefjydqEXvhHsmJcpnsWzZ0JZoNvtyUYOoHCAZU8Z4HCMw81eeJ/6ZnrjoDVFMAl wfmpfocjby3AelR3oIFBm7s8V/uxziOnztW3xSRKt24SEDCXbayXffi1N7qhIsGYgM39 UxDvw4pf7teRqxpN5goC/IdOVaHI3lwS5mLnRSWOs4mj9Lvuf+PUl62Jgz15sWCNphA6 4vtEahqQ6axWHyxPoPzqS+rC4tY47Cg8Jaev1e7x2QMmZJCM7U5BIJOMHSPCTgHynFzi +sCgX54A1aBZt+2kaGEzbj7VZ7z8FEsvkEhilpYVSzuqbxPFUQrCIIP/AqlbB4y4iHHJ YbXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=HUJMnwTC; arc=pass (i=1 spf=pass spfdomain=bytedance.com dkim=pass dkdomain=bytedance.com dmarc=pass fromdomain=bytedance.com); spf=pass (google.com: domain of linux-kernel+bounces-90479-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90479-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id e17-20020a056402105100b005666a9ea9a3si3872668edu.457.2024.03.04.03.10.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 03:10:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90479-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=HUJMnwTC; arc=pass (i=1 spf=pass spfdomain=bytedance.com dkim=pass dkdomain=bytedance.com dmarc=pass fromdomain=bytedance.com); spf=pass (google.com: domain of linux-kernel+bounces-90479-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90479-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1FB541F25AE2 for ; Mon, 4 Mar 2024 11:08:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 850E439AE6; Mon, 4 Mar 2024 11:08:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="HUJMnwTC" Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E990E381D0 for ; Mon, 4 Mar 2024 11:08:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709550498; cv=none; b=nw5AQqMwBKAfS3HnlqlBra3xUWDGPhIY5LfAnbr/giY/IfvLFeCkm4t/1qgU6VDMv9Vi4dLgw/ZjLaLgofc6IgOQWsfGoBzFKwC9ancF/XTDxE2xvlkDOuDzuSXUg3GvU2/1WzoywQ4/hTbCBm6kB2q7uYo6hA7zqcSyJ//9jA8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709550498; c=relaxed/simple; bh=iQTB6iQcjXpyDrCxjESHbO+MDvnl4uA6D+rBQbS5g3k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=TGJnldvhYEX/71UCphqYn7o02vi+YPtdKp8Y3K2ag1qf6eUnqFJQ6AOUz58TUxGhpjxQkHJefdid1MICNt1cxklIRW1/o2wxrPJSP44OcZ+UEhNqWpkNX6oEZG6ypCMsy7pXJVMKmiB9MhP4XC+P3J0MQiyvPlGgI/0jpF9wzAo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com; spf=pass smtp.mailfrom=bytedance.com; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b=HUJMnwTC; arc=none smtp.client-ip=209.85.216.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-29ae0d292d4so470999a91.0 for ; Mon, 04 Mar 2024 03:08:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1709550496; x=1710155296; darn=vger.kernel.org; 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=MVpQb6gnXjWzSd7/4z2SbTtHslRCQp5WpZHkGdzmg3w=; b=HUJMnwTCyumRywqDrU5UBrgdmEZUoBETQ/jS3HvXCWvNXm+urLZZ5E8d0rDDZKaK2P W2EpwvVboehbvIaxs9ekD3IV+FTds5/PhGN5sn7eBC7j5DSl4Qu3hdumRETNIsnhJpSZ z3yZobtifa9TR32NaTqs/GXYHGQGh0zgqxUZmz1CAVOYhcQ6UEhJAcE0m0CDDkEjEznr QUwAIJrrzG/C/rab2H+xN+KJ9MShN5vWyqjI9bQEc1DZloBvgv81S8GRQyUnKAQZWZXI oYhbF+7bNQoj3xGwaYbjjf28ysg2MzGCy5UZdxcPekmLApGHyj2GboVF0SS1fEd5kTTa +M/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709550496; x=1710155296; 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=MVpQb6gnXjWzSd7/4z2SbTtHslRCQp5WpZHkGdzmg3w=; b=dv2P5T2sQ7Y0T3pFEjbbI405EHqgtG2DbCVmagblCg2o54v19OBxvmKkfNZdIOGFVP L2SYIfhLLILOLYeXKvwOTK8YWjOtEpsGCAQW4J+XB3IqUJxX+TwarIbaL07rHvX/+z70 sVsQYjTFZ9RBQElhxsroNHyKmgZlU9siNcPFopIrl6OuLZ6Ro9++rz3xYiC+vxpRP8MX 0PdsiwsM8a7kBhJdY1XvUCgiGl46yH7y7eESyhbJ6rup+pHECuWnnOhpulBr9m2xztel OtXidDMyuVCBUk2vaWK0QmfCoM9+vmiHOSoEBy+MePMDVVutQkAH9i8Jr5kuQm42GTqQ IbCA== X-Forwarded-Encrypted: i=1; AJvYcCV4axub0CbitOoTJjg/cE8yNrrj5MCHBjhPTv9DYPILhnaj1+eUd6SS8T+udNIVVbzXtWVN/WfU4FwGIXDDLmIdqcS2z54KjN3y9azp X-Gm-Message-State: AOJu0YyUrEKwu60O1ruoWoq2JXVSG+rB0ct9hUi+jn62RvDyCp8ajwOJ h0Clf2R8OrNHHpzetbPq4r3zDnHFb+xoshMomDTWLMW18JAtaeSysHeTqM8K7Hg= X-Received: by 2002:a17:90a:804c:b0:299:dddb:3a92 with SMTP id e12-20020a17090a804c00b00299dddb3a92mr6941943pjw.1.1709550496198; Mon, 04 Mar 2024 03:08:16 -0800 (PST) Received: from C02DW0BEMD6R.bytedance.net ([203.208.167.154]) by smtp.gmail.com with ESMTPSA id y5-20020a17090aca8500b0029b59bf77b4sm587410pjt.42.2024.03.04.03.08.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 03:08:15 -0800 (PST) From: Qi Zheng To: akpm@linux-foundation.org, vishal.moola@gmail.com, hughd@google.com, david@redhat.com, rppt@kernel.org, willy@infradead.org, muchun.song@linux.dev Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Qi Zheng Subject: [PATCH 2/3] mm: pgtable: add missing pt_index to struct ptdesc Date: Mon, 4 Mar 2024 19:07:19 +0800 Message-Id: <283624c2af45fb2090b41a6b1b5481bb0a45bad7.1709541697.git.zhengqi.arch@bytedance.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In s390, the page->index field is used for gmap (see gmap_shadow_pgt()), so add the corresponding pt_index to struct ptdesc and add a comment to clarify this. Signed-off-by: Qi Zheng --- include/linux/mm_types.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index 5ea77969daae..5240bd7bca33 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -425,6 +425,7 @@ FOLIO_MATCH(compound_head, _head_2a); * @_pt_pad_1: Padding that aliases with page's compound head. * @pmd_huge_pte: Protected by ptdesc->ptl, used for THPs. * @__page_mapping: Aliases with page->mapping. Unused for page tables. + * @pt_index: Used for s390 gmap. * @pt_mm: Used for x86 pgds. * @pt_frag_refcount: For fragmented page table tracking. Powerpc only. * @_pt_pad_2: Padding to ensure proper alignment. @@ -450,6 +451,7 @@ struct ptdesc { unsigned long __page_mapping; union { + pgoff_t pt_index; struct mm_struct *pt_mm; atomic_t pt_frag_refcount; }; @@ -475,6 +477,7 @@ TABLE_MATCH(flags, __page_flags); TABLE_MATCH(compound_head, pt_list); TABLE_MATCH(compound_head, _pt_pad_1); TABLE_MATCH(mapping, __page_mapping); +TABLE_MATCH(index, pt_index); TABLE_MATCH(rcu_head, pt_rcu_head); TABLE_MATCH(page_type, __page_type); TABLE_MATCH(_refcount, __page_refcount); -- 2.30.2