#define __LINUX_SPINLOCK_H
#endif
-#include <libcfs/list.h>
+#include <libcfs/libcfs.h>
#include <lnet/lnet.h>
-#include <libcfs/kp30.h>
#include <libcfs/user-bitops.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <assert.h>
+#include <libcfs/libcfs.h>
#include <libcfs/list.h>
#include <lnet/lnet.h>
-#include <libcfs/kp30.h>
#include <libcfs/user-bitops.h>
#ifndef _IOWR
#define read_unlock(l) spin_unlock(l)
#define write_lock(l) spin_lock(l)
#define write_unlock(l) spin_unlock(l)
-
+#define rwlock_init(l) spin_lock_init(l)
#define min(x,y) ((x)<(y) ? (x) : (y))
#define max(x,y) ((x)>(y) ? (x) : (y))