@@ -6539,8 +6539,19 @@ void nfs4_put_cpntf_state(struct nfsd_net *nn, struct nfs4_cpntf_state *cps)
6539
6539
spin_unlock (& nn -> s2s_cp_lock );
6540
6540
}
6541
6541
6542
- /*
6543
- * Checks for stateid operations
6542
+ /**
6543
+ * nfs4_preprocess_stateid_op - find and prep stateid for an operation
6544
+ * @rqstp: incoming request from client
6545
+ * @cstate: current compound state
6546
+ * @fhp: filehandle associated with requested stateid
6547
+ * @stateid: stateid (provided by client)
6548
+ * @flags: flags describing type of operation to be done
6549
+ * @nfp: optional nfsd_file return pointer (may be NULL)
6550
+ * @cstid: optional returned nfs4_stid pointer (may be NULL)
6551
+ *
6552
+ * Given info from the client, look up a nfs4_stid for the operation. On
6553
+ * success, it returns a reference to the nfs4_stid and/or the nfsd_file
6554
+ * associated with it.
6544
6555
*/
6545
6556
__be32
6546
6557
nfs4_preprocess_stateid_op (struct svc_rqst * rqstp ,
@@ -6729,8 +6740,18 @@ static __be32 nfs4_seqid_op_checks(struct nfsd4_compound_state *cstate, stateid_
6729
6740
return status ;
6730
6741
}
6731
6742
6732
- /*
6733
- * Checks for sequence id mutating operations.
6743
+ /**
6744
+ * nfs4_preprocess_seqid_op - find and prep an ol_stateid for a seqid-morphing op
6745
+ * @cstate: compund state
6746
+ * @seqid: seqid (provided by client)
6747
+ * @stateid: stateid (provided by client)
6748
+ * @typemask: mask of allowable types for this operation
6749
+ * @stpp: return pointer for the stateid found
6750
+ * @nn: net namespace for request
6751
+ *
6752
+ * Given a stateid+seqid from a client, look up an nfs4_ol_stateid and
6753
+ * return it in @stpp. On a nfs_ok return, the returned stateid will
6754
+ * have its st_mutex locked.
6734
6755
*/
6735
6756
static __be32
6736
6757
nfs4_preprocess_seqid_op (struct nfsd4_compound_state * cstate , u32 seqid ,
0 commit comments