From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="XmL7t7s1" 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.