diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-01-31 10:39:29 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-02-06 18:47:58 -0500 |
commit | 1cab0652ba985d11b67645bd344c39ebb6cd28a2 (patch) | |
tree | 98f439b7b90400c4c5b6bbb51d37fcb81d6a6ca5 /fs/nfs/nfs4xdr.c | |
parent | 883381246c5ac2c29b849fe619f55fa5961ee76d (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.c | 3 |
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; | ||
5675 | out_overflow: | 5676 | out_overflow: |
5676 | print_overflow_msg(__func__, xdr); | 5677 | print_overflow_msg(__func__, xdr); |
5677 | out: | 5678 | out: |