mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 14:11:20 +00:00
vfs: plumb remap flags through the vfs clone functions
Plumb a remap_flags argument through the {do,vfs}_clone_file_range functions so that clone can take advantage of it. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
parent
42ec3d4c02
commit
452ce65951
6 changed files with 17 additions and 12 deletions
|
@ -232,7 +232,7 @@ static long ioctl_file_clone(struct file *dst_file, unsigned long srcfd,
|
|||
if (src_file.file->f_path.mnt != dst_file->f_path.mnt)
|
||||
goto fdput;
|
||||
cloned = vfs_clone_file_range(src_file.file, off, dst_file, destoff,
|
||||
olen);
|
||||
olen, 0);
|
||||
if (cloned < 0)
|
||||
ret = cloned;
|
||||
else if (olen && cloned != olen)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue