* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
- * Copyright (c) 2012, 2013, Intel Corporation.
+ * Copyright (c) 2012, 2016, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
*
* Protected by lu_ref_refs_guard.
*/
-static struct list_head lu_ref_refs;
-static spinlock_t lu_ref_refs_guard;
+static LIST_HEAD(lu_ref_refs);
+static DEFINE_SPINLOCK(lu_ref_refs_guard);
static struct lu_ref lu_ref_marker = {
.lf_guard = __SPIN_LOCK_UNLOCKED(lu_ref_marker.lf_guard),
.lf_list = LIST_HEAD_INIT(lu_ref_marker.lf_list),
CDEBUG(D_CONSOLE,
"lu_ref tracking is enabled. Performance isn't.\n");
- INIT_LIST_HEAD(&lu_ref_refs);
- spin_lock_init(&lu_ref_refs_guard);
result = lu_kmem_init(lu_ref_caches);
#ifdef CONFIG_PROC_FS