Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2847458rwb; Mon, 19 Sep 2022 10:51:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4vkberMSGjJCjoo0ekotoDI9g7P2oJ7vk7XT8C4k6QAhgiBKY3JsbmD9utUmAR8MWu4npA X-Received: by 2002:a17:903:1c1:b0:178:1c92:e35 with SMTP id e1-20020a17090301c100b001781c920e35mr840756plh.151.1663609872072; Mon, 19 Sep 2022 10:51:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663609872; cv=none; d=google.com; s=arc-20160816; b=wvA1+Tj/3iY0Xagv+RjIbvxY6mUsBxijsI6zr/VCgMXxbh7VCLcKSI3mz9Sc64UTc8 tyQ4ib74uz7bf0ce0JY4P6D73FUHIBPhZjzKiSQwknP+5XjkOZqc1OTVkOokWe7rRRM7 PYSN1/siC1AAJ6aC7wX8UDjN6HrQ/fmsUeUqRTwIoFu0DrRF/Oh8GQ8W8zj4029mdtgd oEGCi9KV0B7HKFIGg9kzrjMw5fUlwsr/ld4Cvcdi1zxNeLpDupFNQMVfu/bUMgpI2CGg 26l3wYO+4i2sc45EjMbF//Px4KO8Di4G2uR0DHQXLnrxfI+0XiGLduXttxg5UMfkNQwQ 0QpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=kdS9QD9VodJFlDe/hzPt/fIHrfeguLlK063E4oft3xY=; b=G+sCfHEkfAGEz0N2HGU7IsjeE7kV2JqKVjt+C7iaGiDDkD8Ef5q6HLvtNxYJmoWM66 m+bGxg6+lN0vYlu0GNsFsP/KYyr5afS5/IQc8SDhkWXApINXMBnF3hh68cW4eXTACx3L JpWC0L2I1BOXq4rLd5Ji0AXsysoIX2o8+RFOrxyj/kpRLrZlCobjDIo5UNNTApp1W2sl nBW51vMVnvlfJCDR7m1AE9Zhiodzxm5dhEim00ANE7H1YwkPyr/Lqj+EH5QtNmTdIpRj dA/hLRT1PEpW41Cc0qIPg1Epz/dtjmoWeHNbKpPl3YzOjD11qDdTewxdqjRmC2VUhi+W ecTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RSsN1QZH; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c16-20020a170902d49000b0017123d2abd5si39340172plg.457.2022.09.19.10.50.54; Mon, 19 Sep 2022 10:51:12 -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=@gmail.com header.s=20210112 header.b=RSsN1QZH; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230133AbiISRe4 (ORCPT + 99 others); Mon, 19 Sep 2022 13:34:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230309AbiISRey (ORCPT ); Mon, 19 Sep 2022 13:34:54 -0400 Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2764224BE1; Mon, 19 Sep 2022 10:34:53 -0700 (PDT) Received: by mail-ot1-x336.google.com with SMTP id r34-20020a05683044a200b0065a12392fd7so43977otv.3; Mon, 19 Sep 2022 10:34:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=kdS9QD9VodJFlDe/hzPt/fIHrfeguLlK063E4oft3xY=; b=RSsN1QZHs/TmzsGp1gwypXdKb/ST8jjoxnGgjyJpGV7sq5aaYponooE63RtJDRuoFk 4VXjc4NPaG7MQomjEcSt+y7p4ZVGuVPclZGjlL/vQiCR0Me8vanyEOYot/zi8Qsubu9j Ix69jBgynF7tCkr+xxKol7c7kNhnVS8KJgxgKk0lyolCfmfJb+3zoq8Vz25NtkyW/5RJ p2+8AeVSPil9bJICaFxtsaSaqUw5Kt5tKUWnYm/Zm3aB+7O1VaahZGVySmK2tZf55QM0 YghzgAsvx0sqLEfTTQQuMHFJo6+U/klj2pt5kixy16lXa6EmRGn5eHCZGXkCezFh7SPi kjXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=kdS9QD9VodJFlDe/hzPt/fIHrfeguLlK063E4oft3xY=; b=SbguzxJyq7PJFCL1+mck1F+Cr3HG4z21EO4jQ6MNzua4D84s6vNsQ8jPCkaxg1nUPq V+nA0uP5DdD7UYCozggMhtOkkbP8663qRdb1RuVLfXhtyBkgJJzGhpzMJ6wq0TLYtEIY Lk8PXTmZG8uCDgzWaXT13AxAlF53Pf2j2T0AY9VQKGzY5ZCBQ0MRH0pIvfKeUgZUFnQL ShY3gNpPecpmbq89zksg9BDrLshSHVVi7M/L1OUVyKht0RoaGH574ToAnq2LC4CRRENI O8sVoTkzHT5ASlQ5JzhnBTt7FE/E4D8ROcae1oVn8HmJTBw2FKabkiaOJTKvC0MDDHqP elPw== X-Gm-Message-State: ACrzQf1bcT6uPi0zdPPgs7Vkgf1VhABB8iIo5F6OqZDNC18KqqZUkDlC aWxPVTwVc1msbXng6/Oowcjrj8eBZEkjFYChKa9ES6rf7p5xPQ== X-Received: by 2002:a05:6830:d8c:b0:639:6034:b3d7 with SMTP id bv12-20020a0568300d8c00b006396034b3d7mr8692869otb.125.1663608892048; Mon, 19 Sep 2022 10:34:52 -0700 (PDT) MIME-Version: 1.0 References: <20220912182224.514561-1-vishal.moola@gmail.com> In-Reply-To: <20220912182224.514561-1-vishal.moola@gmail.com> From: Vishal Moola Date: Mon, 19 Sep 2022 10:34:40 -0700 Message-ID: Subject: Re: [PATCH v2 00/23] Convert to filemap_get_folios_tag() To: linux-fsdevel@vger.kernel.org Cc: linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org, linux-btrfs@vger.kernel.org, ceph-devel@vger.kernel.org, linux-cifs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com, linux-nilfs@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,SUSPICIOUS_RECIPS autolearn=no 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 Mon, Sep 12, 2022 at 11:25 AM Vishal Moola (Oracle) wrote: > > This patch series replaces find_get_pages_range_tag() with > filemap_get_folios_tag(). This also allows the removal of multiple > calls to compound_head() throughout. > It also makes a good chunk of the straightforward conversions to folios, > and takes the opportunity to introduce a function that grabs a folio > from the pagecache. > > F2fs and Ceph have quite alot of work to be done regarding folios, so > for now those patches only have the changes necessary for the removal of > find_get_pages_range_tag(), and only support folios of size 1 (which is > all they use right now anyways). > > I've run xfstests on btrfs, ext4, f2fs, and nilfs2, but more testing may be > beneficial. The page-writeback and filemap changes implicitly work. Testing > and review of the other changes (afs, ceph, cifs, gfs2) would be appreciated. > --- > v2: > Got Acked-By tags for nilfs and btrfs changes > Fixed an error arising in f2fs > - Reported-by: kernel test robot > > Vishal Moola (Oracle) (23): > pagemap: Add filemap_grab_folio() > filemap: Added filemap_get_folios_tag() > filemap: Convert __filemap_fdatawait_range() to use > filemap_get_folios_tag() > page-writeback: Convert write_cache_pages() to use > filemap_get_folios_tag() > afs: Convert afs_writepages_region() to use filemap_get_folios_tag() > btrfs: Convert btree_write_cache_pages() to use > filemap_get_folio_tag() > btrfs: Convert extent_write_cache_pages() to use > filemap_get_folios_tag() > ceph: Convert ceph_writepages_start() to use filemap_get_folios_tag() > cifs: Convert wdata_alloc_and_fillpages() to use > filemap_get_folios_tag() > ext4: Convert mpage_prepare_extent_to_map() to use > filemap_get_folios_tag() > f2fs: Convert f2fs_fsync_node_pages() to use filemap_get_folios_tag() > f2fs: Convert f2fs_flush_inline_data() to use filemap_get_folios_tag() > f2fs: Convert f2fs_sync_node_pages() to use filemap_get_folios_tag() > f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag() > f2fs: Convert last_fsync_dnode() to use filemap_get_folios_tag() > f2fs: Convert f2fs_sync_meta_pages() to use filemap_get_folios_tag() > gfs2: Convert gfs2_write_cache_jdata() to use filemap_get_folios_tag() > nilfs2: Convert nilfs_lookup_dirty_data_buffers() to use > filemap_get_folios_tag() > nilfs2: Convert nilfs_lookup_dirty_node_buffers() to use > filemap_get_folios_tag() > nilfs2: Convert nilfs_btree_lookup_dirty_buffers() to use > filemap_get_folios_tag() > nilfs2: Convert nilfs_copy_dirty_pages() to use > filemap_get_folios_tag() > nilfs2: Convert nilfs_clear_dirty_pages() to use > filemap_get_folios_tag() > filemap: Remove find_get_pages_range_tag() > > fs/afs/write.c | 114 +++++++++++++++++---------------- > fs/btrfs/extent_io.c | 57 +++++++++-------- > fs/ceph/addr.c | 138 ++++++++++++++++++++-------------------- > fs/cifs/file.c | 33 +++++++++- > fs/ext4/inode.c | 55 ++++++++-------- > fs/f2fs/checkpoint.c | 49 +++++++------- > fs/f2fs/compress.c | 13 ++-- > fs/f2fs/data.c | 69 ++++++++++---------- > fs/f2fs/f2fs.h | 5 +- > fs/f2fs/node.c | 72 +++++++++++---------- > fs/gfs2/aops.c | 64 ++++++++++--------- > fs/nilfs2/btree.c | 14 ++-- > fs/nilfs2/page.c | 59 ++++++++--------- > fs/nilfs2/segment.c | 44 +++++++------ > include/linux/pagemap.h | 32 +++++++--- > include/linux/pagevec.h | 8 --- > mm/filemap.c | 87 ++++++++++++------------- > mm/page-writeback.c | 44 +++++++------ > mm/swap.c | 10 --- > 19 files changed, 507 insertions(+), 460 deletions(-) > > -- > 2.36.1 > Just following up on these patches. Many of the changes still need review. If anyone has time this week to look over any of the affected areas (pagecache, afs, ceph, ciph, ext4, f2fs, or gfs) feedback would be much appreciated. Also, Thanks to David for looking at btrfs and Ryusuke for looking at nilfs already.