diff options
author | Anna Schumaker | 2015-11-10 22:53:33 +0100 |
---|---|---|
committer | Al Viro | 2015-12-01 20:00:55 +0100 |
commit | eac70053a141998c40907747d6cea1d53a9414be (patch) | |
tree | 67b51897837e7e031727afd38596e9d5eb10e196 /fs/locks.c | |
parent | btrfs: add .copy_file_range file operation (diff) | |
download | kernel-qcow2-linux-eac70053a141998c40907747d6cea1d53a9414be.tar.gz kernel-qcow2-linux-eac70053a141998c40907747d6cea1d53a9414be.tar.xz kernel-qcow2-linux-eac70053a141998c40907747d6cea1d53a9414be.zip |
vfs: Add vfs_copy_file_range() support for pagecache copies
This allows us to have an in-kernel copy mechanism that avoids frequent
switches between kernel and user space. This is especially useful so
NFSD can support server-side copies.
The default (flags=0) means to first attempt copy acceleration, but use
the pagecache if that fails.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Padraig Brady <P@draigBrady.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/locks.c')
0 files changed, 0 insertions, 0 deletions