Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp34983iol; Wed, 8 Jun 2022 20:59:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5WzDIGQ5I2SEb2QKRmM1wvFq6G+gJunJ75IyXnJ0LJzHD/CV9WL/RL5L0N6ukI1W61J7u X-Received: by 2002:a17:90b:d98:b0:1e3:2a7f:4ce1 with SMTP id bg24-20020a17090b0d9800b001e32a7f4ce1mr1364544pjb.226.1654747164218; Wed, 08 Jun 2022 20:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654747164; cv=none; d=google.com; s=arc-20160816; b=Gh4aEfJbiK6390kenlztGEXAFs6BKZ8TGGJz0b+B4lWJMFuCOgsxhTSGiCsZN4uak/ WFcssIel8idFA0x8Bf9Er7IlEHXhost2Z/uAGEBZTPL3strRIRyC056Ocj41bsldmoak 3VITgKd63QVgg9nUIa8jJINqgBXouz0Iq5K5Meo5HnjIsa8UWP8EZoOT5wPXe/jG7qZ9 C/qmKDaoKHEBEYM7dZa7bwJdiDvZm6wF57ZC6aM8fSHjL3tfI6ttxzwtm2MmyWXtog3z cUGWXmtzwCtq2wRVckpY6SXxXz9xRh6uJSJtYGa63CB6t4u6MO+nXSjIvKS3KN2sawTw glAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=k5NOE2/mOchRWcRvMdsOMX23IRbR4XjJRm5kjerQYfs=; b=x7rBU+IO8Iub7+fV5PP28D9zHZVNlUm2QuGap/F2BpP7Be9A9EizO+FgAOAA5+U/gi DbKomhyb1OAoFuuwsq7ol6MAh/JF9jtix6jGLkWDW4cs1cMbncaPzgtBB6K+JfsjlBKR I1K4wr7BM/fmqiZgoszdauArqqdNLTnZkGDpH6hthtb0HnpclDGBLltusPmp/axoxMLk xU/SOL09VzZfouRbKjboSyTseDCSmrZPmXa75khHeIOyNKWGo5yu99ZWId95MsP7KbZO nPR7N9crOK8OMYP4OH2CKLSGMMkm7cWy3bK1yIEIKfxvfQLh+rHjYauYu7f+2swKkrYw ceHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="UMDExU/q"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i8-20020aa787c8000000b005191ccfe205si3914571pfo.117.2022.06.08.20.59.08; Wed, 08 Jun 2022 20:59:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="UMDExU/q"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230414AbiFID4T (ORCPT + 99 others); Wed, 8 Jun 2022 23:56:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236716AbiFID4R (ORCPT ); Wed, 8 Jun 2022 23:56:17 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3F7B286C9; Wed, 8 Jun 2022 20:56:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=k5NOE2/mOchRWcRvMdsOMX23IRbR4XjJRm5kjerQYfs=; b=UMDExU/q7tF8/mqWoSgLYxhOpC FkB/nDKRBlAlwMswJxYlpwOD+T9b3fHuzs5Xk9HKsw1RzKM18Nvzmz2zvtMnyPCsG0qy2kU/WHu9X mVccNPi9V87DFgmPksbjSq32mvZYh7FU9kikejkUfrcbqMujPYOK4OsnGEYmxwRBuH+8cz929MoC+ J1L5P254VCbTHcr/3B4+pgfRdz1mWvdV10u33rtAMJjWsHP0HN5sU7QukTrtM4bSJeT0tiNaLZ0sf okORJ39zhtNOHmkrX4y3W5zWBlbmRyPPS8qKqjL4e2oY+q3FEDzI+tyRYIGUkaqgz1VdTJg+hKLV8 s6Jccx+g==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nz9HM-00G0pb-DO; Thu, 09 Jun 2022 03:56:16 +0000 Date: Wed, 8 Jun 2022 20:56:16 -0700 From: Christoph Hellwig To: Matthew Wilcox Cc: Christoph Hellwig , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-mm@kvack.org, linux-nilfs@vger.kernel.org Subject: Re: [PATCH 08/10] vmscan: Add check_move_unevictable_folios() Message-ID: References: <20220605193854.2371230-1-willy@infradead.org> <20220605193854.2371230-9-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Jun 08, 2022 at 05:32:34PM +0100, Matthew Wilcox wrote: > On Wed, Jun 08, 2022 at 01:07:32AM -0700, Christoph Hellwig wrote: > > On Sun, Jun 05, 2022 at 08:38:52PM +0100, Matthew Wilcox (Oracle) wrote: > > > Change the guts of check_move_unevictable_pages() over to use folios > > > and add check_move_unevictable_pages() as a wrapper. > > > > The changes here look fine, but please also add patches for converting > > the two callers (which looks mostly trivial to me). > > I do want to get rid of pagevecs entirely, but that conversion isn't > going to happen in time for the next merge window. for_each_sgt_page() > is a little intimidating. for_each_sgt_page, just like other creative scatterlist abuse in the gpu code is a beast. But, instead of doing a for_each_sgt_page to add pages to the pagevec and then do a loop over the pagevec to add to the folio batch it should be pretty trivial to just cut out the middle man.