diff options
author | Shehjar Tikoo <shehjart@gluster.com> | 2010-05-06 08:36:16 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-05-08 06:37:33 -0700 |
commit | c1f052da3652595effee1e514b1e9fb9055e13a1 (patch) | |
tree | e44514e0be89b3623bb138665eb5e23e36a58b01 | |
parent | c8a94aa7c522e7c820ae181c6f60e657bc12ea6d (diff) |
nfs3: Use standard macro to return ESTALE
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 857 (Crash in afr_sh_entry_expunge_entry_cbk)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=857
-rw-r--r-- | xlators/nfs/server/src/nfs3-helpers.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/xlators/nfs/server/src/nfs3-helpers.c b/xlators/nfs/server/src/nfs3-helpers.c index 0ae67b455..f16bcac6f 100644 --- a/xlators/nfs/server/src/nfs3-helpers.c +++ b/xlators/nfs/server/src/nfs3-helpers.c @@ -2822,11 +2822,8 @@ nfs3_fh_resolve_entry (nfs3_call_state_t *cs) return ret; ret = nfs3_fh_resolve_entry_hard (cs); - if (ret < 0) { - cs->resolve_ret = -1; - cs->resolve_errno = ESTALE; - nfs3_call_resume (cs); - } + if (ret < 0) + nfs3_call_resume_estale (cs); return 0; } |