]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: add clone file and clone range vfs functions
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 3 Oct 2016 16:11:40 +0000 (09:11 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 5 Oct 2016 23:26:25 +0000 (16:26 -0700)
commitb4cec6c543a2590d871b6441d1a4dcd153a6348d
tree791ffd4dc32bdb8841339a15d9a197abd7b77c4c
parente6c707485f82e33eb8518e5c9f730064e5e91855
xfs: add clone file and clone range vfs functions

Define two VFS functions which allow userspace to reflink a range of
blocks between two files or to reflink one file's contents to another.
These functions fit the new VFS ioctls that standardize the checking
for the btrfs CLONE and CLONE RANGE ioctls.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_file.c