Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp17113640rwd; Mon, 26 Jun 2023 21:15:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7aLmYXrtzJ/YDwvcHiTUYkO7KDHyjNh08DYmY9uYRTVtDJrgKOfuBdGqJjERMXmi07iHdX X-Received: by 2002:ac8:5f4a:0:b0:3fd:dd80:52a6 with SMTP id y10-20020ac85f4a000000b003fddd8052a6mr38476297qta.16.1687839320819; Mon, 26 Jun 2023 21:15:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687839320; cv=none; d=google.com; s=arc-20160816; b=m6En3cJrxThvYu21GLUnMvLgTVMWhE3QRoxUt8YQVAIKL/Iz3HYsuBurnvdJTtLwD1 bR57DaknIkhjX1TIn643X/TW+0Zz/2rn0X/wc+97UAskLcsoIsIdRapBctx8UY99zpEl bb9al3uU51O8qFeYN0s4D4FJQOEqqbmURuqF5g3yRzhj+OT2h4DJR1lUXbQzpaJhoqaS YhijqceoE8xaoZrOaV8602qA5qedtgESDeFPVoo3bqrx3yb4xcQgJYo0lA4aqSUbUYzF nUJmdRpg8GI2o5EvkpKzs+HEk1a2aFvsSXCxubcHrMos4nbueWyiJVT1W+3TS6aniKaS QXgw== 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=FNs3BplCPpnzdNu8i3c1Y/TSPIbiewFjVDwcw/mDzZw=; fh=gGe1bAmqosunpnKx861aPvPnisbppe3AO8eAJI9yG5k=; b=Q+Cz+VfLlYYLykG+ZoBPXtIl5OObq+Jz5tU/lSibmCrCCyaqcz92/CArVPQZzEWUUW ses5F2LNS0ZknGLFx5Qr9ah6v5UlYffG4ASqNCRhKrkLfdslRKJEWtGNwlEeih8ORGMw bJNnusSLzorNAjA4YpFzqtYKYf7Awf50rc1zZGfd/OJWKohXdSBMYfRom5AKUo7k06Gi oywQSsgD0qm5xj/M1U9oKH9Bc+kqmcBbvti9M/84oanNXQD+BCoWQOImaPKYKAhAmV3b 7rngW7YOUe/KDtnL7gDp3H6jxdKN5epeGUxyXB4d+3cGH0OA5r5zKUbzPPrkM4FUL4Qr sy5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=T3rmNnOp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 s15-20020a63dc0f000000b005575a1d0e2csi6332442pgg.269.2023.06.26.21.15.09; Mon, 26 Jun 2023 21:15:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=T3rmNnOp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229777AbjF0EDl (ORCPT + 99 others); Tue, 27 Jun 2023 00:03:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbjF0EDj (ORCPT ); Tue, 27 Jun 2023 00:03:39 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08D21E59; Mon, 26 Jun 2023 21:03:39 -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=FNs3BplCPpnzdNu8i3c1Y/TSPIbiewFjVDwcw/mDzZw=; b=T3rmNnOpj5XKSDGjcuQrs5ZBg4 /nn2S/AteGGEHrBO0qfJU9TMNv/g38NgqwqQVavNNc+NpqIIwd6FzbE26Exa85Mm2izeWaL/tyEsI DkN1FWnNdsllVxQk6aDksH2AhMpr11JogGhCkxunKv8ogiz5ioqkZVckNXYXLxf+e6G4T09nNnjxw fAilwjhW+nZaA0yebzTpMEnq5sWsW1jHQdS8sT6BWvsXh7BQm/0nMBhJMA1kxDBW210uHZ73fl4Ap dlnfsMnCt66iTPaV02aFdD7iXITrxYxh/NVgV7sCE1Xzcm+FR5aaqvWER8ayQxn/z/yn36TAmJUG4 iGOcf6rw==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qDzvU-00Be61-1r; Tue, 27 Jun 2023 04:03:36 +0000 Date: Mon, 26 Jun 2023 21:03:36 -0700 From: Christoph Hellwig To: "Matthew Wilcox (Oracle)" Cc: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Jan Kara , David Howells Subject: Re: [PATCH 00/12] Convert write_cache_pages() to an iterator Message-ID: References: <20230626173521.459345-1-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230626173521.459345-1-willy@infradead.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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-kernel@vger.kernel.org On Mon, Jun 26, 2023 at 06:35:09PM +0100, Matthew Wilcox (Oracle) wrote: > Dave Howells doesn't like the indirect function call imposed by > write_cache_pages(), so refactor it into an iterator. I took the > opportunity to add the ability to iterate a folio_batch without having > an external variable. > > This is against next-20230623. If you try to apply it on top of a tree > which doesn't include the pagevec removal series, IT WILL CRASH because > it won't reinitialise folio_batch->i and the iteration will index out > of bounds. > > I have a feeling the 'done' parameter could have a better name, but I > can't think what it might be. Heh, I actually have a local series with a minor subset of some of the cleanups, but without the iterator conversion.