aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/send.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-06-22 03:35:28 +0200
committerDavid Sterba <dsterba@suse.com>2017-08-16 16:12:04 +0200
commitd3c0bab5632337f6d3841fbe0dc238a743cb4472 (patch)
treef6b069154380ee436c7f61333923c98918aa7857 /fs/btrfs/send.c
parentbtrfs: drop ancient page flag mappings (diff)
downloadlinux-dev-d3c0bab5632337f6d3841fbe0dc238a743cb4472.tar.xz
linux-dev-d3c0bab5632337f6d3841fbe0dc238a743cb4472.zip
btrfs: remove trivial wrapper btrfs_force_ra
It's a simple call page_cache_sync_readahead, same arguments in the same order. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/send.c')
-rw-r--r--fs/btrfs/send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c
index b082210df9c8..59fb1ed6ca20 100644
--- a/fs/btrfs/send.c
+++ b/fs/btrfs/send.c
@@ -4733,7 +4733,7 @@ static ssize_t fill_read_buf(struct send_ctx *sctx, u64 offset, u32 len)
/* initial readahead */
memset(&sctx->ra, 0, sizeof(struct file_ra_state));
file_ra_state_init(&sctx->ra, inode->i_mapping);
- btrfs_force_ra(inode->i_mapping, &sctx->ra, NULL, index,
+ page_cache_sync_readahead(inode->i_mapping, &sctx->ra, NULL, index,
last_index - index + 1);
while (index <= last_index) {