@@ -6539,8 +6539,19 @@ void nfs4_put_cpntf_state(struct nfsd_net *nn, struct nfs4_cpntf_state *cps)
65396539 spin_unlock (& nn -> s2s_cp_lock );
65406540}
65416541
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.
65446555 */
65456556__be32
65466557nfs4_preprocess_stateid_op (struct svc_rqst * rqstp ,
@@ -6729,8 +6740,18 @@ static __be32 nfs4_seqid_op_checks(struct nfsd4_compound_state *cstate, stateid_
67296740 return status ;
67306741}
67316742
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.
67346755 */
67356756static __be32
67366757nfs4_preprocess_seqid_op (struct nfsd4_compound_state * cstate , u32 seqid ,
0 commit comments