mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
staging: lustre: libcfs: remove cfs_percpt_[current|index]
The functions cfs_percpt_current() and cfs_percpt_index() are not used anywhere. Remove it. Signed-off-by: frank zago <fzago@cray.com> Signed-off-by: James Simmons <uja.ornl@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: http://review.whamcloud.com/15913 Reviewed-by: John L. Hammond <john.hammond@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ccfb80c186
commit
a18332b456
@ -193,8 +193,6 @@ void *cfs_percpt_alloc(struct cfs_cpt_table *cptab, unsigned int size);
|
||||
*/
|
||||
void cfs_percpt_free(void *vars);
|
||||
int cfs_percpt_number(void *vars);
|
||||
void *cfs_percpt_current(void *vars);
|
||||
void *cfs_percpt_index(void *vars, int idx);
|
||||
|
||||
#define cfs_percpt_for_each(var, i, vars) \
|
||||
for (i = 0; i < cfs_percpt_number(vars) && \
|
||||
|
@ -114,34 +114,6 @@ cfs_percpt_number(void *vars)
|
||||
}
|
||||
EXPORT_SYMBOL(cfs_percpt_number);
|
||||
|
||||
/*
|
||||
* return memory block shadowed from current CPU
|
||||
*/
|
||||
void *
|
||||
cfs_percpt_current(void *vars)
|
||||
{
|
||||
struct cfs_var_array *arr;
|
||||
int cpt;
|
||||
|
||||
arr = container_of(vars, struct cfs_var_array, va_ptrs[0]);
|
||||
cpt = cfs_cpt_current(arr->va_cptab, 0);
|
||||
if (cpt < 0)
|
||||
return NULL;
|
||||
|
||||
return arr->va_ptrs[cpt];
|
||||
}
|
||||
|
||||
void *
|
||||
cfs_percpt_index(void *vars, int idx)
|
||||
{
|
||||
struct cfs_var_array *arr;
|
||||
|
||||
arr = container_of(vars, struct cfs_var_array, va_ptrs[0]);
|
||||
|
||||
LASSERT(idx >= 0 && idx < arr->va_count);
|
||||
return arr->va_ptrs[idx];
|
||||
}
|
||||
|
||||
/*
|
||||
* free variable array, see more detail in cfs_array_alloc
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user