Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp56028iof; Sun, 5 Jun 2022 20:58:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8JwhhB5KhCLB7gbg5CEg7Y1WQdcKOISe+Y5uokcsQ5k4eWt+agjZXwc2GiHDxs95hlPp5 X-Received: by 2002:a62:a516:0:b0:505:722e:15d5 with SMTP id v22-20020a62a516000000b00505722e15d5mr89523959pfm.52.1654487915477; Sun, 05 Jun 2022 20:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654487915; cv=none; d=google.com; s=arc-20160816; b=Rl0xAjJpy54jbVSFVyxo/d484PPRqcwfuZ2YKQpe+Mdc/KYvH6giIcLTxSFR2yiomq YY0GMLF7+qV1jKlhIf/aqftQCS2VxVyE30Ps4G/p1K03aI7vzoUVEl5aC71/aSAe8/0o wGXNEkGWjYpJnSFRYcAJ8rnqhNsSpw5pLc3GTdxwbt8BfNK+GZtEn9SVeIoq1ryZZmeW DgdiVrIgZX0A95s5n4wq6J5PbTK+d+klLxy4jA1+KoUHeES6+1NtW1Pba6RNaBH1xhqk lzILZ5eGDV4C5LgPtL+oEr0zE9hT5JqHD3EouikvUaaC/2fEE6n2rD/HOYfNFr36w09S SCcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pFaDJUkNgKV/oU+nKufi51KbavXmhswow0vSfNYzKrI=; b=TWB31eUXoMlwSPPlUdnLZTOcWSZlYDzPduRnM3k//KrMYiDh5FtBR74QpzsUnhWR9x wCpMZkKY8Rf9307yOZvICIH0x6Jopy5R6yYsL5vvRqz8DSanwIZLCMu5gEAPrzlDpvnh IwNZdTEnWSWxCvXtsnQ1NvinlRyUMk4sAvHWY9H4g7s9VpupRKoSgeWG63odfE7vsiTE 4dg0wVZ57y3IlUSg+SS5RQctWzKrTsLiqTb3CAoW7ldWQVEajUOeuQ2XV8JXju6nkzzi WY/5ecDGYVU3ZafW4lVcaklEPiBY/Ak7l5W0knPTQGCisSvI+e5OGKWxAr/WP5sOOeuc 2Gxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=IQQ3chWA; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e16-20020a056a0000d000b005109299b02fsi18435201pfj.113.2022.06.05.20.58.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 20:58:35 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=IQQ3chWA; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7374B663F4; Sun, 5 Jun 2022 20:45:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244689AbiFETjr (ORCPT + 99 others); Sun, 5 Jun 2022 15:39:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351617AbiFETje (ORCPT ); Sun, 5 Jun 2022 15:39:34 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3874F11A00; Sun, 5 Jun 2022 12:39:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=pFaDJUkNgKV/oU+nKufi51KbavXmhswow0vSfNYzKrI=; b=IQQ3chWAAqod3iNOvZPz+sg3JL Hk+ApUMeqh7NT3g6IWWJNzgueSDKfvvNhBx6utIRkRDW0gX3AiQfvMXnwsyaJ/64KiwRfHwjSy/dv 8J6uezBFHQnTUj8EMV7+h4tSlGa2WN04lIzx/EyXL84mDYJOn+khSbti+8XKflhn9L4r/WhR6xbM7 +MZ9IYhStDA3yihxRhpkHHC+OXeBpvNCGWk5fEeGTb1H9CRJG5lEjoY1+jSkJw8hVgtSw7cxw6GvV KZogb0QToLdgR6kEf13Hcr4syZG2xfRXsnqeCO+zpSb6FDBtT5Fx6Rp6rYpWkgGY3OjWTTkHnJk29 kJYadcSQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nxw5Q-009wsN-GO; Sun, 05 Jun 2022 19:38:56 +0000 From: "Matthew Wilcox (Oracle)" To: linux-fsdevel@vger.kernel.org Cc: "Matthew Wilcox (Oracle)" , 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: [PATCH 00/10] Convert to filemap_get_folios() Date: Sun, 5 Jun 2022 20:38:44 +0100 Message-Id: <20220605193854.2371230-1-willy@infradead.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,SUSPICIOUS_RECIPS, T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org This patch series removes find_get_pages_range(), pagevec_lookup() and pagevec_lookup_range(), converting all callers to use the new filemap_get_folios(). I've only run xfstests over ext4 ... some other testing might be appropriate. Matthew Wilcox (Oracle) (10): filemap: Add filemap_get_folios() buffer: Convert clean_bdev_aliases() to use filemap_get_folios() ext4: Convert mpage_release_unused_pages() to use filemap_get_folios() ext4: Convert mpage_map_and_submit_buffers() to use filemap_get_folios() f2fs: Convert f2fs_invalidate_compress_pages() to use filemap_get_folios() hugetlbfs: Convert remove_inode_hugepages() to use filemap_get_folios() nilfs2: Convert nilfs_copy_back_pages() to use filemap_get_folios() vmscan: Add check_move_unevictable_folios() shmem: Convert shmem_unlock_mapping() to use filemap_get_folios() filemap: Remove find_get_pages_range() and associated functions fs/buffer.c | 26 +++++++-------- fs/ext4/inode.c | 40 ++++++++++++----------- fs/f2fs/compress.c | 35 +++++++++----------- fs/hugetlbfs/inode.c | 44 ++++++++----------------- fs/nilfs2/page.c | 60 +++++++++++++++++----------------- include/linux/pagemap.h | 5 ++- include/linux/pagevec.h | 10 ------ include/linux/swap.h | 3 +- mm/filemap.c | 72 +++++++++++++++++------------------------ mm/shmem.c | 13 ++++---- mm/swap.c | 29 ----------------- mm/vmscan.c | 55 ++++++++++++++++++------------- 12 files changed, 166 insertions(+), 226 deletions(-) -- 2.35.1