NFSD: Move documenting comment for nfsd4_process_open2()
[ Upstream commit 7e2ce0cc15a509b859199235a2bad9cece00f67a ] Clean up nfsd4_open() by converting a large comment at the only call site for nfsd4_process_open2() to a kerneldoc comment in front of that function. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
e139ce38c4
commit
09e30c0ad5
2 changed files with 13 additions and 5 deletions
|
@ -628,11 +628,7 @@ nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
|
||||||
status = nfserr_inval;
|
status = nfserr_inval;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
* nfsd4_process_open2() does the actual opening of the file. If
|
|
||||||
* successful, it (1) truncates the file if open->op_truncate was
|
|
||||||
* set, (2) sets open->op_stateid, (3) sets open->op_delegation.
|
|
||||||
*/
|
|
||||||
status = nfsd4_process_open2(rqstp, resfh, open);
|
status = nfsd4_process_open2(rqstp, resfh, open);
|
||||||
WARN(status && open->op_created,
|
WARN(status && open->op_created,
|
||||||
"nfsd4_process_open2 failed to open newly-created file! status=%u\n",
|
"nfsd4_process_open2 failed to open newly-created file! status=%u\n",
|
||||||
|
|
|
@ -5465,6 +5465,18 @@ static void nfsd4_deleg_xgrade_none_ext(struct nfsd4_open *open,
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* nfsd4_process_open2 - finish open processing
|
||||||
|
* @rqstp: the RPC transaction being executed
|
||||||
|
* @current_fh: NFSv4 COMPOUND's current filehandle
|
||||||
|
* @open: OPEN arguments
|
||||||
|
*
|
||||||
|
* If successful, (1) truncate the file if open->op_truncate was
|
||||||
|
* set, (2) set open->op_stateid, (3) set open->op_delegation.
|
||||||
|
*
|
||||||
|
* Returns %nfs_ok on success; otherwise an nfs4stat value in
|
||||||
|
* network byte order is returned.
|
||||||
|
*/
|
||||||
__be32
|
__be32
|
||||||
nfsd4_process_open2(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open)
|
nfsd4_process_open2(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue