staging: lustre: remove libcfs_init_string function

All the function libcfs_init_string did was initialize
a spinlock. We can initialize the spinlock statically
instead.

Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
James Simmons 2015-10-21 21:52:41 -04:00 committed by Greg Kroah-Hartman
parent 47ca6ec267
commit 43049a83b5
3 changed files with 1 additions and 11 deletions

View file

@ -152,8 +152,6 @@ extern struct miscdevice libcfs_dev;
extern char lnet_upcall[1024];
extern char lnet_debug_log_upcall[1024];
extern void libcfs_init_nidstrings(void);
extern struct cfs_psdev_ops libcfs_psdev_ops;
extern struct cfs_wi_sched *cfs_sched_rehash;

View file

@ -61,13 +61,7 @@
static char libcfs_nidstrings[LNET_NIDSTR_COUNT][LNET_NIDSTR_SIZE];
static int libcfs_nidstring_idx;
static spinlock_t libcfs_nidstring_lock;
void libcfs_init_nidstrings(void)
{
spin_lock_init(&libcfs_nidstring_lock);
}
EXPORT_SYMBOL(libcfs_init_nidstrings);
static DEFINE_SPINLOCK(libcfs_nidstring_lock);
char *
libcfs_next_nidstring(void)

View file

@ -701,8 +701,6 @@ static int init_libcfs_module(void)
{
int rc;
libcfs_init_nidstrings();
rc = libcfs_debug_init(5 * 1024 * 1024);
if (rc < 0) {
pr_err("LustreError: libcfs_debug_init: %d\n", rc);