summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs42.h
diff options
context:
space:
mode:
authorAnna Schumaker2013-05-21 22:53:03 +0200
committerAnna Schumaker2016-05-17 21:47:55 +0200
commit2e72448b07dc3ff1b7593e9bfff91db182262857 (patch)
tree8dee05ff1743ef438fa53f85d980e1b3ddb12698 /fs/nfs/nfs42.h
parentNFS: Add nfs_commit_file() (diff)
downloadkernel-qcow2-linux-2e72448b07dc3ff1b7593e9bfff91db182262857.tar.gz
kernel-qcow2-linux-2e72448b07dc3ff1b7593e9bfff91db182262857.tar.xz
kernel-qcow2-linux-2e72448b07dc3ff1b7593e9bfff91db182262857.zip
NFS: Add COPY nfs operation
This adds the copy_range file_ops function pointer used by the sys_copy_range() function call. This patch only implements sync copies, so if an async copy happens we decode the stateid and ignore it. Signed-off-by: Anna Schumaker <bjschuma@netapp.com>
Diffstat (limited to 'fs/nfs/nfs42.h')
-rw-r--r--fs/nfs/nfs42.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs42.h b/fs/nfs/nfs42.h
index b587ccd31083..b6cd15314bab 100644
--- a/fs/nfs/nfs42.h
+++ b/fs/nfs/nfs42.h
@@ -13,6 +13,7 @@
/* nfs4.2proc.c */
int nfs42_proc_allocate(struct file *, loff_t, loff_t);
+ssize_t nfs42_proc_copy(struct file *, loff_t, struct file *, loff_t, size_t);
int nfs42_proc_deallocate(struct file *, loff_t, loff_t);
loff_t nfs42_proc_llseek(struct file *, loff_t, int);
int nfs42_proc_layoutstats_generic(struct nfs_server *,