summaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
authorDave Chinner2019-06-05 17:04:47 +0200
committerDarrick J. Wong2019-06-09 19:06:19 +0200
commit64bf5ff58dff757253cf2142542672de4b21cd1a (patch)
tree45cacb386c21b2778cc9a0562e5ee3aa0b2924be /mm/filemap.c
parentvfs: introduce generic_copy_file_range() (diff)
downloadkernel-qcow2-linux-64bf5ff58dff757253cf2142542672de4b21cd1a.tar.gz
kernel-qcow2-linux-64bf5ff58dff757253cf2142542672de4b21cd1a.tar.xz
kernel-qcow2-linux-64bf5ff58dff757253cf2142542672de4b21cd1a.zip
vfs: no fallback for ->copy_file_range
Now that we have generic_copy_file_range(), remove it as a fallback case when offloads fail. This puts the responsibility for executing fallbacks on the filesystems that implement ->copy_file_range and allows us to add operational validity checks to generic_copy_file_range(). Rework vfs_copy_file_range() to call a new do_copy_file_range() helper to execute the copying callout, and move calls to generic_file_copy_range() into filesystem methods where they currently return failures. [Amir] overlayfs is not responsible of executing the fallback. It is the responsibility of the underlying filesystem. Signed-off-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions