]> git.hungrycats.org Git - linux/commitdiff
btrfs: fix stale function references in compression comments
authorTal Zussman <tz2294@columbia.edu>
Mon, 7 Sep 2026 20:20:00 +0000 (16:20 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 14 Sep 2026 11:23:38 +0000 (13:23 +0200)
add_ra_bio_pages() was renamed to add_ra_bio_folios(), and
btrfs_compress_filemap_get_folio() wraps filemap_get_folio(), not
find_get_page(). Update the comments accordingly.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Tal Zussman <tz2294@columbia.edu>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c

index fa8b92592321ee10ca76f4bd7b6f298f2a53248c..20169d0289619191a5e1013a2181c1fbc318a4bf 100644 (file)
@@ -431,7 +431,7 @@ static noinline int add_ra_bio_folios(struct inode *inode, u64 compressed_end,
                }
 
                /*
-                * Since add_ra_bio_pages() is always speculative, suppress
+                * Since add_ra_bio_folios() is always speculative, suppress
                 * allocation warnings.
                 */
                masked_constraint_gfp = mapping_gfp_constraint(mapping, constraint_gfp);
@@ -960,7 +960,7 @@ bool btrfs_compress_level_valid(unsigned int type, int level)
        return levels->min_level <= level && level <= levels->max_level;
 }
 
-/* Wrapper around find_get_page(), with extra error message. */
+/* Wrapper around filemap_get_folio(), with extra error message. */
 int btrfs_compress_filemap_get_folio(struct address_space *mapping, u64 start,
                                     struct folio **in_folio_ret)
 {