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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9CF8BC83F12 for ; Tue, 29 Aug 2023 14:26:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236680AbjH2OZf (ORCPT ); Tue, 29 Aug 2023 10:25:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236947AbjH2OZX (ORCPT ); Tue, 29 Aug 2023 10:25:23 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 031C2B8 for ; Tue, 29 Aug 2023 07:25:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=CVKHTAOju4/Kpfxf3rY34wfjvySGLxW/e01pPFR8Jb0=; b=ni8iwXg3R/pSgOwiM/4UWsVy/+ JU7IDy4YZ4CCuTp7Xdjn67Wn54IkOF4kkb8N+jhQwpljIpbECPz8/gofMM3Asc53AvkxwQIqhR2/F FTjmMfASMTB6XW8Tw0oaOHdPAFZ/dwkE9ROEJo6LvbIOQ3zbCmiiF/dw9dJCmtH2r33/yYXDRQpsO wdnTlP95VBtRAfjIQvhP35ajSdxBrUIhT7kRSTMshf25sGJuZJV3bO5Pop0mQOETeCYfHOBepebLo KJkP+K/lqpLv38PngbOhInZ/Juk5VJ8bWbqLFGhv33Bcyn+t1UCM/TZtsMEHYN5SSpvgAsBO8YW/+ C2qBCGuQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qazeH-0073hu-Un; Tue, 29 Aug 2023 14:24:53 +0000 Date: Tue, 29 Aug 2023 15:24:53 +0100 From: Matthew Wilcox To: Ryan Roberts Cc: Will Deacon , "Aneesh Kumar K.V" , Andrew Morton , Nick Piggin , Peter Zijlstra , Christian Borntraeger , Sven Schnelle , Arnd Bergmann , David Hildenbrand , Yu Zhao , "Kirill A. Shutemov" , Yin Fengwei , Yang Shi , "Huang, Ying" , Zi Yan , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 4/4] mm/mmu_gather: Store and process pages in contig ranges Message-ID: References: <20230810103332.3062143-1-ryan.roberts@arm.com> <20230810103332.3062143-5-ryan.roberts@arm.com> <29099099-7ef2-45cb-bab7-455f58de47d1@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 29, 2023 at 03:19:29PM +0100, Matthew Wilcox wrote: > > > You'll be glad to know I've factored out a nice little helper for that. > > > > OK, what's it called? This is just copied from release_pages() at the moment. > > Happy to use your helper in the refactored common helper. > > I'll send out those patches today. No, wait, I sent them on Friday. https://lore.kernel.org/linux-mm/20230825135918.4164671-9-willy@infradead.org/ is the important one from your point of view. It's __page_cache_release() which is a little different from the current __page_cache_release()