aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4xdr.c
diff options
context:
space:
mode:
authorBryan Schumaker <bjschuma@netapp.com>2012-01-31 10:39:29 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-02-06 18:47:58 -0500
commit1cab0652ba985d11b67645bd344c39ebb6cd28a2 (patch)
tree98f439b7b90400c4c5b6bbb51d37fcb81d6a6ca5 /fs/nfs/nfs4xdr.c
parent883381246c5ac2c29b849fe619f55fa5961ee76d (diff)
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,
5671 if (unlikely(!p)) 5671 if (unlikely(!p))
5672 goto out_overflow; 5672 goto out_overflow;
5673 res->status = be32_to_cpup(p++); 5673 res->status = be32_to_cpup(p++);
5674 return res->status; 5674
5675 return status;
5675out_overflow: 5676out_overflow:
5676 print_overflow_msg(__func__, xdr); 5677 print_overflow_msg(__func__, xdr);
5677out: 5678out: