Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

NFSD: Move documenting comment for nfsd4_process_open2()

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>

+13 -5
+1 -5
fs/nfsd/nfs4proc.c
··· 628 628 status = nfserr_inval; 629 629 goto out; 630 630 } 631 - /* 632 - * nfsd4_process_open2() does the actual opening of the file. If 633 - * successful, it (1) truncates the file if open->op_truncate was 634 - * set, (2) sets open->op_stateid, (3) sets open->op_delegation. 635 - */ 631 + 636 632 status = nfsd4_process_open2(rqstp, resfh, open); 637 633 WARN(status && open->op_created, 638 634 "nfsd4_process_open2 failed to open newly-created file! status=%u\n",
+12
fs/nfsd/nfs4state.c
··· 5448 5448 */ 5449 5449 } 5450 5450 5451 + /** 5452 + * nfsd4_process_open2 - finish open processing 5453 + * @rqstp: the RPC transaction being executed 5454 + * @current_fh: NFSv4 COMPOUND's current filehandle 5455 + * @open: OPEN arguments 5456 + * 5457 + * If successful, (1) truncate the file if open->op_truncate was 5458 + * set, (2) set open->op_stateid, (3) set open->op_delegation. 5459 + * 5460 + * Returns %nfs_ok on success; otherwise an nfs4stat value in 5461 + * network byte order is returned. 5462 + */ 5451 5463 __be32 5452 5464 nfsd4_process_open2(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open) 5453 5465 {