diff options
| author | Filipe Manana <[email protected]> | 2024-03-18 11:52:00 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-05-07 19:31:00 +0000 |
| commit | 7938d38b94c98e7a48ddc0a43ddf54482b940b90 (patch) | |
| tree | 585fbbe25f09c490b4926a8bd62976b71529d674 /fs/btrfs/extent_io.c | |
| parent | btrfs: locking: rename __btrfs_tree_lock() and __btrfs_tree_read_lock() (diff) | |
| download | kernel-7938d38b94c98e7a48ddc0a43ddf54482b940b90.tar.gz kernel-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 <[email protected]>
Reviewed-by: Anand Jain <[email protected]>
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/extent_io.c')
| -rw-r--r-- | fs/btrfs/extent_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 2776112dbdf8..f863eefe0f1c 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -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]; |
