diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-03-05 15:46:18 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-03-05 15:46:18 -0500 |
commit | 3fa04ecd72780da31ba8b329e148179bc24a9c7d (patch) | |
tree | f5d462fd4aee086952d18f159f737c450ab46b3b /fs/nfs/nfs4xdr.c | |
parent | 180b62a3d837613fcac3ce89576526423926c3c3 (diff) | |
parent | 1cda707d52e51a6cafac0aef12d2bd7052d572e6 (diff) |
Merge branch 'writeback-for-2.6.34' into nfs-for-2.6.34
Diffstat (limited to 'fs/nfs/nfs4xdr.c')
-rw-r--r-- | fs/nfs/nfs4xdr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index 020ebf151184..4d338be492cb 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c | |||
@@ -4639,7 +4639,7 @@ static int decode_sequence(struct xdr_stream *xdr, | |||
4639 | * If the server returns different values for sessionID, slotID or | 4639 | * If the server returns different values for sessionID, slotID or |
4640 | * sequence number, the server is looney tunes. | 4640 | * sequence number, the server is looney tunes. |
4641 | */ | 4641 | */ |
4642 | status = -ESERVERFAULT; | 4642 | status = -EREMOTEIO; |
4643 | 4643 | ||
4644 | if (memcmp(id.data, res->sr_session->sess_id.data, | 4644 | if (memcmp(id.data, res->sr_session->sess_id.data, |
4645 | NFS4_MAX_SESSIONID_LEN)) { | 4645 | NFS4_MAX_SESSIONID_LEN)) { |
@@ -5782,7 +5782,7 @@ static struct { | |||
5782 | { NFS4ERR_BAD_COOKIE, -EBADCOOKIE }, | 5782 | { NFS4ERR_BAD_COOKIE, -EBADCOOKIE }, |
5783 | { NFS4ERR_NOTSUPP, -ENOTSUPP }, | 5783 | { NFS4ERR_NOTSUPP, -ENOTSUPP }, |
5784 | { NFS4ERR_TOOSMALL, -ETOOSMALL }, | 5784 | { NFS4ERR_TOOSMALL, -ETOOSMALL }, |
5785 | { NFS4ERR_SERVERFAULT, -ESERVERFAULT }, | 5785 | { NFS4ERR_SERVERFAULT, -EREMOTEIO }, |
5786 | { NFS4ERR_BADTYPE, -EBADTYPE }, | 5786 | { NFS4ERR_BADTYPE, -EBADTYPE }, |
5787 | { NFS4ERR_LOCKED, -EAGAIN }, | 5787 | { NFS4ERR_LOCKED, -EAGAIN }, |
5788 | { NFS4ERR_SYMLINK, -ELOOP }, | 5788 | { NFS4ERR_SYMLINK, -ELOOP }, |
@@ -5809,7 +5809,7 @@ nfs4_stat_to_errno(int stat) | |||
5809 | } | 5809 | } |
5810 | if (stat <= 10000 || stat > 10100) { | 5810 | if (stat <= 10000 || stat > 10100) { |
5811 | /* The server is looney tunes. */ | 5811 | /* The server is looney tunes. */ |
5812 | return -ESERVERFAULT; | 5812 | return -EREMOTEIO; |
5813 | } | 5813 | } |
5814 | /* If we cannot translate the error, the recovery routines should | 5814 | /* If we cannot translate the error, the recovery routines should |
5815 | * handle it. | 5815 | * handle it. |