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) | |
download | blackbird-op-linux-1cab0652ba985d11b67645bd344c39ebb6cd28a2.tar.gz blackbird-op-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.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, 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: |