}
/**
+ * __seq_server_alloc_super() - allocate new super sequence
+ * @seq: server sequence from which the super sequence will be derived
+ * @out: (Output Param) store the returned super seq range
+ * @env: execution environment
+ *
* On controller node, allocate new super sequence for regular sequence server.
* As this super sequence controller, this node suppose to maintain fld
- * and update index.
- * \a out range always has currect mds node number of requester.
+ * and update index. @out range always has correct mds node number of requester
+ * (Super sequence is pool of sequence number. Server sequence is a subset of
+ * sequence number allocated from super sequence pool)
+ *
+ * Return:
+ * * %0: Success
+ * * %negative: Failure
*/
-
static int __seq_server_alloc_super(struct lu_server_seq *seq,
struct lu_seq_range *out,
const struct lu_env *env)
}
/**
- * Check if the sequence server has sequence avaible
+ * seq_server_check_and_alloc_super() - Check if the sequence server has
+ * sequence available
+ * @env: execution environment
+ * @seq: server sequence
*
- * Check if the sequence server has sequence avaible, if not, then
+ * Check if the sequence server has sequence available, if not, then
* allocating super sequence from sequence manager (MDT0).
*
- * \param[in] env execution environment
- * \param[in] seq server sequence
- *
- * \retval negative errno if allocating new sequence fails
- * \retval 0 if there is enough sequence or allocating
- * new sequence succeeds
+ * Return:
+ * * %0: if there is enough sequence or allocating new sequence succeeds
+ * * %-ERRNO: if allocating new sequence fails
*/
int seq_server_check_and_alloc_super(const struct lu_env *env,
struct lu_server_seq *seq)
#include "fid_internal.h"
-/**
+/*
* A cluster-wide range from which fid-sequences are granted to servers and
* then clients.
*
}
/**
- * Allocate the whole non-used seq to the caller.
+ * seq_client_get_seq() - Allocate the whole non-used seq to the caller
+ * @env: pointer to the thread context
+ * @seq: pointer to the client sequence manager
+ * @seqnr: to hold the new allocated sequence
*
- * \param[in] env pointer to the thread context
- * \param[in,out] seq pointer to the client sequence manager
- * \param[out] seqnr to hold the new allocated sequence
- *
- * \retval 0 for new sequence allocated.
- * \retval Negative error number on failure.
+ * Return:
+ * * %0: Success (for new sequence allocated)
+ * * %-ERRNO: On Failure
*/
int seq_client_get_seq(const struct lu_env *env,
struct lu_client_seq *seq, u64 *seqnr)
EXPORT_SYMBOL(seq_client_get_seq);
/**
- * Allocate new fid on passed client @seq and save it to @fid.
- *
- * \param[in] env pointer to the thread context
- * \param[in,out] seq pointer to the client sequence manager
- * \param[out] fid to hold the new allocated fid
+ * seq_client_alloc_fid() - Allocate new FID on passed client @seq and save
+ * it to @fid.
+ * @env: pointer to the thread context
+ * @seq: pointer to the client sequence manager
+ * @fid: to hold the new allocated FID
*
- * \retval 1 for notify the caller that sequence switch
- * is performed to allow it to setup FLD for it.
- * \retval 0 for new FID allocated in current sequence.
- * \retval Negative error number on failure.
+ * Return:
+ * * %1: notify the caller that sequence switch is performed to allow it to
+ * setup FLD for it.
+ * * %0: new FID allocated in current sequence.
+ * * %negative: On failure
*/
int seq_client_alloc_fid(const struct lu_env *env,
struct lu_client_seq *seq, struct lu_fid *fid)
/* Format: [0x64BIT_INT - 0x64BIT_INT] + 32 bytes just in case */
#define MAX_FID_RANGE_STRLEN (32 + 2 * 2 * sizeof(__u64))
-/**
+/*
* Reduce the SEQ range allocated to a node to a strict subset of the range
* currently-allocated SEQ range. If the specified range is "clear", then
* drop all allocated sequences and request a new one from the master.