commit | 5b49f64db299d0b3f7c2170088186aa593d0be7d | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <darrick.wong@oracle.com> | Tue Oct 30 10:40:22 2018 +1100 |
committer | Dave Chinner <david@fromorbit.com> | Tue Oct 30 10:40:22 2018 +1100 |
tree | ed7559be897c3e12da7719f6d278e29528d3af90 | |
parent | 84df9525b0c27f3ebc2ebb1864fa62a97fdedb7d [diff] |
vfs: vfs_clone_file_prep_inodes should return EINVAL for a clone from beyond EOF vfs_clone_file_prep_inodes cannot return 0 if it is asked to remap from a zero byte file because that's what btrfs does. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com>