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:
parent
c8a94aa7c5
commit
c1f052da36
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user