From mboxrd@z Thu Jan 1 00:00:00 1970 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 3BF4AC3DA6E for ; Mon, 25 Dec 2023 06:35:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A08736B0080; Mon, 25 Dec 2023 01:35:36 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 990DD6B0081; Mon, 25 Dec 2023 01:35:36 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 830696B0082; Mon, 25 Dec 2023 01:35:36 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 6D8466B0080 for ; Mon, 25 Dec 2023 01:35:36 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 410461C0D06 for ; Mon, 25 Dec 2023 06:35:36 +0000 (UTC) X-FDA: 81604379472.21.4DC5342 Received: from out-183.mta0.migadu.com (out-183.mta0.migadu.com [91.218.175.183]) by imf30.hostedemail.com (Postfix) with ESMTP id 476FA80007 for ; Mon, 25 Dec 2023 06:35:33 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=XmL7t7s1; spf=pass (imf30.hostedemail.com: domain of muchun.song@linux.dev designates 91.218.175.183 as permitted sender) smtp.mailfrom=muchun.song@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1703486134; 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-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=3Mj5NvpEvY0iaWI1AN4f/AnoPa53HvYK2B531TwP00g=; b=Y+zJEES99Fe9YYTEy8bSKMJDvo63kmiRhAz86p2Wgj56p7gOcCkkzHmCVdI+FZi1pLxquV /n0WLPs1BY7Qf0uN09sagP8It3FL5nlyfQTE54mhAD6hgplB1a5/NkmdxdjCxMPxuXPa/b u18bMAB3eI+y5+z7D7L1pko9ZfoGIWA= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=XmL7t7s1; spf=pass (imf30.hostedemail.com: domain of muchun.song@linux.dev designates 91.218.175.183 as permitted sender) smtp.mailfrom=muchun.song@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1703486134; a=rsa-sha256; cv=none; b=JPqFen4jgoq0IKbioOdh0broQp3tVLolWhUnAyFq/y0kke+9Vot8+P4H4388FYEL7UeHVX JmetIitjr+Mz9sMPDetqvGtMyZz/86FRSc/rrDUTfp60zXjGtNG1+0oAMBlDiPkPotX3Ws oY6LRJgToE3PEgrPDDxUqKuV6HMzDBE= 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= 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 X-Rspamd-Queue-Id: 476FA80007 X-Rspam-User: X-Stat-Signature: zuiiijn51gjczphyqyorgehmjybbauk9 X-Rspamd-Server: rspam01 X-HE-Tag: 1703486133-803011 X-HE-Meta: U2FsdGVkX1/x3dilbCnnnZhrGie/dw3jps1WwHOohr+CWFjUmoj+7l+VJL3HvjJNiJ2cGaqEneimxLwT7hqAiNCpziH2KDD1mxhbcZPkfXFIYkTAESpsTrAXiSKpofTAHXVNK7rTtlC/GWOFjuJ5NGlv1lhlRSXu5CAV0m1KdRb9LVeac9hZdLIpkEoyG04/qvHpjuiCvCN40m1VQr501PeJalw71JvgO8nUI1lPuIS5C6pPYWSjJwlANljXuIWMgcJaKeJlIB1K6qPWP5jCbQOzSyKbNxpBQsnwig8TLyORGl8kGtm4yyHLCoTLi629rhiZYKfu6EvaCnW7luaojWmeS2x8ciqzupkvZx0NCZ6Vu6yzZQPvctded7ObAPZaLxquq73izo8WYRAbjSu0T5ejS2TxUWFPuiV0bOzps2wXN/a1OEwZwNr/fa2ysiIX/NXqBIccjpoi1nL7xouSJAVVxRMeOji9L3hU0yjVz5n1nMM++f7T3nJWSQgwbFN2oRuzt3B1KbAXCncfIRAgbeLgk/6QKTjZv6VuSieajq2zGSAWoPtEyXRXUKBBgmlBiuB0RNtkv5JBZ+J4hQwf8LTeACYH5wtV/Lx3CaXWDZC7kqHtaCRUCq3vYqtufsTuHz2uqml8FNJgzWyTl/k+objiSIRS/IqD1HlZQNUvdABQ4lvJwK7kckgaaKFXNaio1zn6GhfVbHdpk+/L0OX/wYsuZuYr2K89e8B/3kHWPs4PC8/zrHJUm/b8jeXUwRM62l742MG7QDA8Y9X5/nv7AlPYuUmWV/5hLhaRDrQstqQRxMhbkEy41/cETT3RjlQAFRz4S7TyWFs2Nxf/XmyxSABkLXAapEyv0826pVTCI3eCF9oT5edkwR/zhADKh3im+7SLwxiFwrjBUsCiuieZQ+32XCa+vs3jUZ1jEP1ZVyNnWi/s1m/uNzjXsP7n91EkflKxJbKOyR4AODz7ZFm EVD89hJY 28ALHIH2OfDv0ccsZZUiRW+LNi7l6jhN9Zz9MpK0AwGMR7NgVD2StbLgqGCZspnxh2+gmnoCfT8X2auKN+6nmq4/sf2gwQIsfDvbQB7RwLg2B6LY9xZioCBPx9X1iBh7fza9IGfAqkETXPXjMwJaRKvWqjPtyE7+ISCYOJoZ2hSRdsb5g/W/iuOvEzP0o7f4wcZNVtajeHeUxGzwGirueDgL4uXRhunKI1VZNeiSv8hZR2pQ91+zut0Qu6KfHXexH0vPPpWf1MmrCO+Urq7K346Xx8fFrGAkZoDyZiBE6cpkf7tCydS3l6EvLWA== 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: List-Subscribe: List-Unsubscribe: > 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.