linux-stable/fs/overlayfs
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
..
copy_up.c vfs: make remap_file_range functions take and return bytes completed 2018-10-30 10:41:49 +11:00
dir.c ovl: set I_CREATING on inode being created 2018-08-22 13:15:25 -07:00
export.c ovl: Modify ovl_lookup() and friends to lookup metacopy dentry 2018-07-20 09:56:09 +02:00
file.c vfs: make remap_file_range functions take and return bytes completed 2018-10-30 10:41:49 +11:00
inode.c ovl: make symbol 'ovl_aops' static 2018-09-25 20:41:23 +02:00
Kconfig ovl: Provide a mount option metacopy=on/off for metadata copyup 2018-07-20 09:56:06 +02:00
Makefile ovl: stack file ops 2018-07-18 15:44:41 +02:00
namei.c ovl: fix access beyond unterminated strings 2018-10-04 14:49:10 +02:00
overlayfs.h ovl: fix format of setxattr debug 2018-10-04 14:49:10 +02:00
ovl_entry.h ovl: Store lower data inode in ovl_inode 2018-07-20 09:56:11 +02:00
readdir.c ovl: fix wrong use of impure dir cache in ovl_iterate() 2018-07-17 16:04:34 +02:00
super.c ovl: fix oopses in ovl_fill_super() failure paths 2018-09-10 12:55:49 +02:00
util.c ovl: fix memory leak on unlink of indexed file 2018-09-24 10:54:01 +02:00