]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
btrfs: remove pointless readahead callback wrapper
authorFilipe Manana <fdmanana@suse.com>
Mon, 18 Mar 2024 11:52:00 +0000 (11:52 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 May 2024 19:31:00 +0000 (21:31 +0200)
There's no point in having a static readahead callback in inode.c that
does nothing besides calling extent_readahead() from extent_io.c.
So just remove the callback at inode.c and rename extent_readahead()
to btrfs_readahead().

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/inode.c

index 2776112dbdf8d471a7cb4d515fdd443e6fadbac5..f863eefe0f1cc4c2b52e06884d38c98fa41e54a1 100644 (file)
@@ -2267,7 +2267,7 @@ int extent_writepages(struct address_space *mapping,
        return ret;
 }
 
-void extent_readahead(struct readahead_control *rac)
+void btrfs_readahead(struct readahead_control *rac)
 {
        struct btrfs_bio_ctrl bio_ctrl = { .opf = REQ_OP_READ | REQ_RAHEAD };
        struct page *pagepool[16];
index e3530d427e1f9f90d94af484c5baea69b519f8a5..eb123b0499e1914b9b0330f52f6c4158ae1190c7 100644 (file)
@@ -241,7 +241,7 @@ int extent_writepages(struct address_space *mapping,
                      struct writeback_control *wbc);
 int btree_write_cache_pages(struct address_space *mapping,
                            struct writeback_control *wbc);
-void extent_readahead(struct readahead_control *rac);
+void btrfs_readahead(struct readahead_control *rac);
 int extent_fiemap(struct btrfs_inode *inode, struct fiemap_extent_info *fieinfo,
                  u64 start, u64 len);
 int set_folio_extent_mapped(struct folio *folio);
index 7fed887e700c4e8e07b6ff7932434a384790b8da..ce923f207e2d033a108c3a90526d5be58a695d42 100644 (file)
@@ -7929,11 +7929,6 @@ static int btrfs_writepages(struct address_space *mapping,
        return extent_writepages(mapping, wbc);
 }
 
-static void btrfs_readahead(struct readahead_control *rac)
-{
-       extent_readahead(rac);
-}
-
 /*
  * For release_folio() and invalidate_folio() we have a race window where
  * folio_end_writeback() is called but the subpage spinlock is not yet released.