Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2175982rdb; Sun, 24 Dec 2023 22:35:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IGfu00MdOUmt6e74HGxXsPzCS0/+XN+ny4kviD6uYgm0URKBXBN7OmTYNv9GxZmN65w0bie X-Received: by 2002:a17:907:619b:b0:a0d:efba:4492 with SMTP id mt27-20020a170907619b00b00a0defba4492mr2262721ejc.10.1703486145582; Sun, 24 Dec 2023 22:35:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703486145; cv=none; d=google.com; s=arc-20160816; b=WyTglxchJbM5usgMOSlkaYoaFwdMrnxhGDySIMNFDvtOX3NGLRyH+eGZBRlUMenVgZ hCpZ5R4EDhGoU88sRkdDeGP5FNfQ3W0s21KXRI1rnHly0blRHX4sYYV1GXhHPMQNMUeI 4tAh9wLQMSmAGrKGPKhw+zWH2t77uTqWnj6TwiTwRnOsiSlnv2l30fn0vaQMNubwLyR4 kJqFMPnUGhnoPyfxDb7akqVk+CFO2sKYDvmx/whYMObgNH9HXvCrvLplns5lJveVnZWW cW1mFTWrWOO4giLNAqH9cSUAmGbWE5+obX+F4ZiGZZY0uqhSjql4RS8/o5uVeFOgTqow 28mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=3Mj5NvpEvY0iaWI1AN4f/AnoPa53HvYK2B531TwP00g=; fh=Jnvw8h53QmnzeKD/ARYtGunpqN4ZxxpihlLj0Mot164=; b=L1o1RQNa5H7NenTAOi2ID+do0tAntRNAvsVNSJmo5Li3LqqKrWymHzl1/IWGk35Fg4 3oIX4AYvKXwwVWmYJyEMxAdvp2gvaTOWf0Y1+eqJGYLSI6mDStCv0cZFwK07ZCIllO8A 3oCQspYVtM+8YM8AsnxDbWeTXuAxBMT7yxCCVQcryq9HUNyE96fU/2Jtc9C8rS9p26C5 0cFdITBEoOj9TbXC+qbjItboKvqh4n9pTB2cwtuQesXAmCfv3iErGvvn73sWQqXNzU1a xEKwHftQHwj4YKojLanzhNl5UcOt/tP4y2nm5SniYGH98OuMdj0Z4vI9oVDLrsyJSgcC PSUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=XmL7t7s1; spf=pass (google.com: domain of linux-kernel+bounces-10905-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10905-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gh20-20020a1709073c1400b00a26ab916409si3641215ejc.138.2023.12.24.22.35.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Dec 2023 22:35:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10905-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=XmL7t7s1; spf=pass (google.com: domain of linux-kernel+bounces-10905-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10905-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 5279A1F21521 for ; Mon, 25 Dec 2023 06:35:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C56F15B0; Mon, 25 Dec 2023 06:35:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="XmL7t7s1" X-Original-To: linux-kernel@vger.kernel.org Received: from out-180.mta0.migadu.com (out-180.mta0.migadu.com [91.218.175.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 64E77110E for ; Mon, 25 Dec 2023 06:35:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1703486132; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3Mj5NvpEvY0iaWI1AN4f/AnoPa53HvYK2B531TwP00g=; b=XmL7t7s1mV7uCwwvgAvOsQNdk/tGvy2JL2lM6W19eCBhgHn71dxcaoEEYsrHNYenfGaMpQ Py9rLBYF5VznAlI0wgRIke5z88kJE8izkPcvSvHAZg64NlIgJ9nuzcCZVZDSGOh5qMb6sY eIEJ36Kut/a/uk8xqi0T4yvgH/wybTk= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Subject: Re: [PATCH 05/13] mm: Introduce vma_pgtable_walk_{begin|end}() X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20231219075538.414708-6-peterx@redhat.com> Date: Mon, 25 Dec 2023 14:34:48 +0800 Cc: LKML , Linux-MM , Matthew Wilcox , Christophe Leroy , Lorenzo Stoakes , David Hildenbrand , Vlastimil Babka , Mike Kravetz , Mike Rapoport , Christoph Hellwig , John Hubbard , Andrew Jones , linux-arm-kernel@lists.infradead.org, Michael Ellerman , "Kirill A . Shutemov" , linuxppc-dev@lists.ozlabs.org, Rik van Riel , linux-riscv@lists.infradead.org, Yang Shi , James Houghton , "Aneesh Kumar K . V" , Andrew Morton , Jason Gunthorpe , Andrea Arcangeli , Axel Rasmussen Content-Transfer-Encoding: 7bit Message-Id: <0D9E28F4-AFA8-479C-8311-093DAFD9DF41@linux.dev> References: <20231219075538.414708-1-peterx@redhat.com> <20231219075538.414708-6-peterx@redhat.com> To: Peter Xu X-Migadu-Flow: FLOW_OUT > On Dec 19, 2023, at 15:55, peterx@redhat.com wrote: > > From: Peter Xu > > Introduce per-vma begin()/end() helpers for pgtable walks. This is a > preparation work to merge hugetlb pgtable walkers with generic mm. > > The helpers need to be called before and after a pgtable walk, will start > to be needed if the pgtable walker code supports hugetlb pages. It's a > hook point for any type of VMA, but for now only hugetlb uses it to > stablize the pgtable pages from getting away (due to possible pmd > unsharing). > > Reviewed-by: Christoph Hellwig > Signed-off-by: Peter Xu Reviewed-by: Muchun Song Thanks.