summaryrefslogtreecommitdiff
path: root/fs/nfs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-11-13 08:38:45 (GMT)
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-11-24 02:52:22 (GMT)
commit9494b2ce4b511e6d285afc0a5006b6cf5ea2b115 (patch)
tree104ff6e9a6330a6669ca64c78a0362b01d812d2e /fs/nfs
parent1ec218373b8ebda821aec00bb156a9c94fad9cd4 (diff)
downloadlinux-9494b2ce4b511e6d285afc0a5006b6cf5ea2b115.tar.xz
nfs: pass on count for CLONE operations
Currently we pass uninitialized stack garbage in the count parameter. The value is usually large enought to clone whole files and thus let simple tests pass, but it makes the tests for range clones very unhappy. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs42proc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs42proc.c b/fs/nfs/nfs42proc.c
index 3e92a3c..303d22e 100644
--- a/fs/nfs/nfs42proc.c
+++ b/fs/nfs/nfs42proc.c
@@ -284,6 +284,7 @@ static int _nfs42_proc_clone(struct rpc_message *msg, struct file *src_f,
.dst_fh = NFS_FH(dst_inode),
.src_offset = src_offset,
.dst_offset = dst_offset,
+ .count = count,
.dst_bitmask = server->cache_consistency_bitmask,
};
struct nfs42_clone_res res = {