summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4xdr.c
diff options
context:
space:
mode:
authorBryan Schumaker2012-01-31 16:39:29 +0100
committerTrond Myklebust2012-02-07 00:47:58 +0100
commit1cab0652ba985d11b67645bd344c39ebb6cd28a2 (patch)
tree98f439b7b90400c4c5b6bbb51d37fcb81d6a6ca5 /fs/nfs/nfs4xdr.c
parentSUNRPC: Change the default limit to the number of TCP slots (diff)
downloadkernel-qcow2-linux-1cab0652ba985d11b67645bd344c39ebb6cd28a2.tar.gz
kernel-qcow2-linux-1cab0652ba985d11b67645bd344c39ebb6cd28a2.tar.xz
kernel-qcow2-linux-1cab0652ba985d11b67645bd344c39ebb6cd28a2.zip
NFS: Pass a stateid to test_stateid() and free_stateid()
This takes the guesswork out of what stateid to use. The caller is expected to figure this out and pass in the correct one. Signed-off-by: Bryan Schumaker <bjschuma@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4xdr.c')
-rw-r--r--fs/nfs/nfs4xdr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index ca288d115b54..5d1caac0656d 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -5671,7 +5671,8 @@ static int decode_test_stateid(struct xdr_stream *xdr,
if (unlikely(!p))
goto out_overflow;
res->status = be32_to_cpup(p++);
- return res->status;
+
+ return status;
out_overflow:
print_overflow_msg(__func__, xdr);
out: