mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
nfsd: simplify nfsd_renew
You can take the single-exit thing too far, I think. Signed-off-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
committed by
Chuck Lever
parent
a9d53a75cf
commit
b4587eb2cf
@@ -5300,15 +5300,12 @@ nfsd4_renew(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
|
|||||||
trace_nfsd_clid_renew(clid);
|
trace_nfsd_clid_renew(clid);
|
||||||
status = lookup_clientid(clid, cstate, nn, false);
|
status = lookup_clientid(clid, cstate, nn, false);
|
||||||
if (status)
|
if (status)
|
||||||
goto out;
|
return status;
|
||||||
clp = cstate->clp;
|
clp = cstate->clp;
|
||||||
status = nfserr_cb_path_down;
|
|
||||||
if (!list_empty(&clp->cl_delegations)
|
if (!list_empty(&clp->cl_delegations)
|
||||||
&& clp->cl_cb_state != NFSD4_CB_UP)
|
&& clp->cl_cb_state != NFSD4_CB_UP)
|
||||||
goto out;
|
return nfserr_cb_path_down;
|
||||||
status = nfs_ok;
|
return nfs_ok;
|
||||||
out:
|
|
||||||
return status;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user