nfsd4: reindent do_open_lookup()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 1 patch 1 replyIn review
Patches in v1 No applies recorded yet
The patch the cover letter announces is not in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/1] nfsd4: reindent do_open_lookup()
Minor rearrangement, cleanup of do_open_lookup(). No change in behavior.
Signed-off-by J. Bruce Fields <[email protected]>
--- fs/nfsd/nfs4proc.c | 24 +++++++++++------------- 1 files changed, 11 insertions(+), 13 deletions(-)
fs/nfsd/nfs4proc.c +11 -13
@@ -106,27 +106,25 @@ do_open_lookup(struct svc_rqst *rqstp, s open->op_fname.len, &open->op_iattr, &resfh, open->op_createmode, (u32 *)open->op_verf.data, &open->op_truncate); - } -else { + }else { status =nfsd_lookup (rqstp, current_fh, open->op_fname.data, open->op_fname.len, &resfh);fh_unlock (current_fh); } +if (status) + goto out; -if (!status) { -set_change_info (&open->op_cinfo, current_fh); +set_change_info (&open->op_cinfo, current_fh); -/* set reply cache */ -fh_dup2 (current_fh, &resfh); - open->op_stateowner->so_replay.rp_openfh_len = - resfh.fh_handle.fh_size; -memcpy (open->op_stateowner->so_replay.rp_openfh, - &resfh.fh_handle.fh_base, - resfh.fh_handle.fh_size); +/* set reply cache */ +fh_dup2 (current_fh, &resfh); + open->op_stateowner->so_replay.rp_openfh_len = resfh.fh_handle.fh_size; +memcpy (open->op_stateowner->so_replay.rp_openfh, + &resfh.fh_handle.fh_base, resfh.fh_handle.fh_size); - status =do_open_permission (rqstp, current_fh, open,MAY_NOP ); - } + status =do_open_permission (rqstp, current_fh, open,MAY_NOP ); +out:fh_put (&resfh);return status; }
Signature · 1 line
1.4.3.3.g01929