From c1f052da3652595effee1e514b1e9fb9055e13a1 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Thu, 6 May 2010 08:36:16 +0000 Subject: nfs3: Use standard macro to return ESTALE Signed-off-by: Shehjar Tikoo Signed-off-by: Anand V. Avati BUG: 857 (Crash in afr_sh_entry_expunge_entry_cbk) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=857 --- xlators/nfs/server/src/nfs3-helpers.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'xlators') diff --git a/xlators/nfs/server/src/nfs3-helpers.c b/xlators/nfs/server/src/nfs3-helpers.c index 0ae67b455b2..f16bcac6f32 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; } -- cgit