* \retval negative error number on failure
*/
#define POOL_INIT_COUNT 2
-int tgt_pool_init(struct lu_tgt_pool *op, unsigned int count)
+int lu_tgt_pool_init(struct lu_tgt_pool *op, unsigned int count)
{
ENTRY;
EXIT;
return 0;
}
-EXPORT_SYMBOL(tgt_pool_init);
+EXPORT_SYMBOL(lu_tgt_pool_init);
/**
* Increase the op_array size to hold more targets in this pool.
* \retval 0 on success
* \retval negative error number on failure.
*/
-int tgt_pool_extend(struct lu_tgt_pool *op, unsigned int min_count)
+int lu_tgt_pool_extend(struct lu_tgt_pool *op, unsigned int min_count)
{
__u32 *new;
__u32 new_size;
return 0;
}
-EXPORT_SYMBOL(tgt_pool_extend);
+EXPORT_SYMBOL(lu_tgt_pool_extend);
/**
* Add a new target to an existing pool.
* \retval 0 if target could be added to the pool
* \retval negative error if target \a idx was not added
*/
-int tgt_pool_add(struct lu_tgt_pool *op, __u32 idx, unsigned int min_count)
+int lu_tgt_pool_add(struct lu_tgt_pool *op, __u32 idx, unsigned int min_count)
{
unsigned int i;
int rc = 0;
down_write(&op->op_rw_sem);
- rc = tgt_pool_extend(op, min_count);
+ rc = lu_tgt_pool_extend(op, min_count);
if (rc)
GOTO(out, rc);
up_write(&op->op_rw_sem);
return rc;
}
-EXPORT_SYMBOL(tgt_pool_add);
+EXPORT_SYMBOL(lu_tgt_pool_add);
/**
* Remove an existing pool from the system.
* \retval 0 on success
* \retval negative error number on failure
*/
-int tgt_pool_remove(struct lu_tgt_pool *op, __u32 idx)
+int lu_tgt_pool_remove(struct lu_tgt_pool *op, __u32 idx)
{
unsigned int i;
ENTRY;
up_write(&op->op_rw_sem);
RETURN(-EINVAL);
}
-EXPORT_SYMBOL(tgt_pool_remove);
+EXPORT_SYMBOL(lu_tgt_pool_remove);
-int tgt_check_index(int idx, struct lu_tgt_pool *osts)
+int lu_tgt_check_index(int idx, struct lu_tgt_pool *osts)
{
int rc, i;
ENTRY;
up_read(&osts->op_rw_sem);
return rc;
}
-EXPORT_SYMBOL(tgt_check_index);
+EXPORT_SYMBOL(lu_tgt_check_index);
/**
* Free the pool after it was emptied and removed from /proc.
*
* \retval 0 on success or if pool was already freed
*/
-int tgt_pool_free(struct lu_tgt_pool *op)
+int lu_tgt_pool_free(struct lu_tgt_pool *op)
{
ENTRY;
up_write(&op->op_rw_sem);
RETURN(0);
}
-EXPORT_SYMBOL(tgt_pool_free);
+EXPORT_SYMBOL(lu_tgt_pool_free);