diff options
author | Filipe Manana <fdmanana@suse.com> | 2024-03-18 11:52:00 +0000 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-05-07 21:31:00 +0200 |
commit | 7938d38b94c98e7a48ddc0a43ddf54482b940b90 (patch) | |
tree | 585fbbe25f09c490b4926a8bd62976b71529d674 /fs/btrfs/inode.c | |
parent | 2066bbfccf4a7bb40e61475c1a2aa3e59fad9619 (diff) | |
download | linux-7938d38b94c98e7a48ddc0a43ddf54482b940b90.tar.gz linux-7938d38b94c98e7a48ddc0a43ddf54482b940b90.tar.bz2 linux-7938d38b94c98e7a48ddc0a43ddf54482b940b90.zip |
btrfs: remove pointless readahead callback wrapper
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>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 7fed887e700c..ce923f207e2d 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -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. |