summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-10-30 00:40:31 +0100
committerDave Chinner <david@fromorbit.com>2018-10-30 00:40:31 +0100
commit1383a7ed67490fb00d793e36c7a4d599ff88a64d (patch)
tree048373f94325388a84358370707718d5c15366a6 /arch
parentvfs: vfs_clone_file_prep_inodes should return EINVAL for a clone from beyond EOF (diff)
downloadlinux-1383a7ed67490fb00d793e36c7a4d599ff88a64d.tar.xz
linux-1383a7ed67490fb00d793e36c7a4d599ff88a64d.zip
vfs: check file ranges before cloning files
Move the file range checks from vfs_clone_file_prep into a separate generic_remap_checks function so that all the checks are collected in a central location. This forms the basis for adding more checks from generic_write_checks that will make cloning's input checking more consistent with write input checking. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions