vfs: combine the clone and dedupe into a single remap_file_range
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 29 Oct 2018 23:41:21 +0000 (10:41 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 29 Oct 2018 23:41:21 +0000 (10:41 +1100)
commit2e5dfc99f2e61c42083ba742395e7a7b353513d1
tree48bc800424405b56153ed8c8997847c8ed9aaf14
parent6095028b455d775e369ae27875f698ff0f6fdeb8
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>
12 files changed:
Documentation/filesystems/porting
Documentation/filesystems/vfs.txt
fs/btrfs/ctree.h
fs/btrfs/file.c
fs/btrfs/ioctl.c
fs/cifs/cifsfs.c
fs/nfs/nfs4file.c
fs/ocfs2/file.c
fs/overlayfs/file.c
fs/read_write.c
fs/xfs/xfs_file.c
include/linux/fs.h