[PATCH 0/9] vfs: move btrfs clone ioctls to common code

2015-10-24 Thread Peng Tao
ioctls through the .copy_file_range method instead of each implementing them in the private ioctl handlers. Cheers, Tao Anna Schumaker (2): nfsd: Pass filehandle to nfs4_preprocess_stateid_op() NFSD: Implement the CLONE call Peng Tao (7): vfs: add COPY_FILE_CLONE_ONLY flag cifs: add

[PATCH 1/9] vfs: add COPY_FILE_CLONE_ONLY flag

2015-10-24 Thread Peng Tao
COPY_FR_REFLINK in uapi/fs.h when implementing new user visiable APIs like sys_clone. Signed-off-by: Peng Tao <tao.p...@primarydata.com> --- fs/read_write.c| 9 + include/linux/fs.h | 3 +++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/fs/read_write.c b/fs/read_write.c

[PATCH 3/9] nfs42: add .copy_file_range file operation

2015-10-24 Thread Peng Tao
Signed-off-by: Peng Tao <tao.p...@primarydata.com> --- fs/nfs/nfs4file.c | 95 ++- 1 file changed, 52 insertions(+), 43 deletions(-) diff --git a/fs/nfs/nfs4file.c b/fs/nfs/nfs4file.c index 4aa5719..f1924d8 100644 --- a/fs/nfs/nfs4file.c

[PATCH 9/9] NFSD: Implement the CLONE call

2015-10-24 Thread Peng Tao
toph Hellwig <h...@lst.de> Signed-off-by: Peng Tao <tao.p...@primarydata.com> --- fs/nfsd/nfs4proc.c | 80 fs/nfsd/nfs4xdr.c| 21 ++ fs/nfsd/vfs.c| 18 fs/nfsd/vfs.h| 1 + f

[PATCH 8/9] nfsd: Pass filehandle to nfs4_preprocess_stateid_op()

2015-10-24 Thread Peng Tao
From: Anna Schumaker This will be needed so COPY can look up the saved_fh in addition to the current_fh. Signed-off-by: Anna Schumaker --- fs/nfsd/nfs4proc.c | 16 +--- fs/nfsd/nfs4state.c | 6 +++--- fs/nfsd/state.h | 5

[PATCH 5/9] btrfs: remove btrfs_ioctl_clone(_range)

2015-10-24 Thread Peng Tao
BTRFS_IOC_CLONE/BTRFS_IOC_CLONE_RANGE is now handled by generic layer and goes through the .copy_file_range method. Signed-off-by: Peng Tao <tao.p...@primarydata.com> --- fs/btrfs/ioctl.c | 49 - 1 file changed, 49 deletions(-) diff --gi