summaryrefslogtreecommitdiff
path: root/fs/btrfs/ioctl.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/ioctl.c
parent35dc313046f3f1b95178a307e646e612b288e628 (diff)
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/ioctl.c')
-rw-r--r--fs/btrfs/ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 7d144a676d95..8189cb328d4a 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -1364,8 +1364,8 @@ int btrfs_defrag_file(struct inode *inode, struct file *file,
if (i + cluster > ra_index) {
ra_index = max(i, ra_index);
if (ra)
- btrfs_force_ra(inode->i_mapping, ra, file,
- ra_index, cluster);
+ page_cache_sync_readahead(inode->i_mapping, ra,
+ file, ra_index, cluster);
ra_index += cluster;
}