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
This commit is contained in:
Shehjar Tikoo 2010-05-06 08:36:16 +00:00 committed by Anand V. Avati
parent c8a94aa7c5
commit c1f052da36

View File

@ -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;
}