diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-10-29 19:41:21 -0400 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2018-10-29 19:41:21 -0400 |
commit | 2e5dfc99f2e61c42083ba742395e7a7b353513d1 (patch) | |
tree | 48bc800424405b56153ed8c8997847c8ed9aaf14 /fs/btrfs/file.c | |
parent | 6095028b455d775e369ae27875f698ff0f6fdeb8 (diff) |
vfs: combine the clone and dedupe into a single remap_file_range
Combine the clone_file_range and dedupe_file_range operations into a
single remap_file_range file operation dispatch since they're
fundamentally the same operation. The differences between the two can
be made in the prep functions.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r-- | fs/btrfs/file.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 2be00e873e92..9a963f061393 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -3269,8 +3269,7 @@ const struct file_operations btrfs_file_operations = { | |||
3269 | #ifdef CONFIG_COMPAT | 3269 | #ifdef CONFIG_COMPAT |
3270 | .compat_ioctl = btrfs_compat_ioctl, | 3270 | .compat_ioctl = btrfs_compat_ioctl, |
3271 | #endif | 3271 | #endif |
3272 | .clone_file_range = btrfs_clone_file_range, | 3272 | .remap_file_range = btrfs_remap_file_range, |
3273 | .dedupe_file_range = btrfs_dedupe_file_range, | ||
3274 | }; | 3273 | }; |
3275 | 3274 | ||
3276 | void __cold btrfs_auto_defrag_exit(void) | 3275 | void __cold btrfs_auto_defrag_exit(void) |