Darrick J. Wong 42ec3d4c02 vfs: make remap_file_range functions take and return bytes completed
Change the remap_file_range functions to take a number of bytes to
operate upon and return the number of bytes they operated on.  This is a
requirement for allowing fs implementations to return short clone/dedupe
results to the user, which will enable us to obey resource limits in a
graceful manner.

A subsequent patch will enable copy_file_range to signal to the
->clone_file_range implementation that it can handle a short length,
which will be returned in the function's return value.  For now the
short return is not implemented anywhere so the behavior won't change --
either copy_file_range manages to clone the entire range or it tries an
alternative.

Neither clone ioctl can take advantage of this, alas.

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>
2018-10-30 10:41:49 +11:00
..
2014-07-08 17:14:27 -04:00
2018-06-12 16:19:22 -07:00
2018-08-09 16:11:21 -04:00
2018-08-22 18:32:07 -04:00
2018-08-22 18:32:07 -04:00
2018-08-09 16:11:21 -04:00
2018-02-08 15:18:32 -08:00
2018-08-09 16:11:21 -04:00
2018-08-22 18:32:07 -04:00
2018-04-03 15:08:15 -04:00
2018-04-03 16:27:08 -04:00