Whamcloud - gitweb
LU-12795 tests: Prefer FAILF in mpi tests
[fs/lustre-release.git] / lustre / osd-ldiskfs / osd_dynlocks.c
index 0e01a67..27e6ecb 100644 (file)
@@ -26,7 +26,6 @@
  * in that lockspace
  *
  */
-#ifdef __KERNEL__
 
 #include <linux/module.h>
 #include <linux/slab.h>
@@ -36,8 +35,7 @@
 
 #include <obd_support.h>
 #include "osd_dynlocks.h"
-
-extern struct kmem_cache *dynlock_cachep;
+#include "osd_internal.h"
 
 #define DYNLOCK_HANDLE_MAGIC   0xd19a10c
 #define DYNLOCK_HANDLE_DEAD    0xd1956ee
@@ -219,4 +217,3 @@ int dynlock_is_locked(struct dynlock *dl, unsigned long value)
        spin_unlock(&dl->dl_list_lock);
        return result;
 }
-#endif