Whamcloud - gitweb
LU-5577 libcfs: fix warnings in libcfs/curproc.h
[fs/lustre-release.git] / libcfs / include / libcfs / lucache.h
index 754beda..990ed79 100644 (file)
@@ -38,6 +38,7 @@
 #define _LUCACHE_H
 
 #include <libcfs/libcfs.h>
+#include <lnet/types.h>
 
 /** \defgroup ucache ucache
  *
@@ -83,15 +84,15 @@ struct md_identity {
 };
 
 struct upcall_cache_entry {
-       cfs_list_t              ue_hash;
-       __u64                   ue_key;
-       cfs_atomic_t            ue_refcount;
-       int                     ue_flags;
+       struct list_head        ue_hash;
+       __u64                   ue_key;
+       atomic_t                ue_refcount;
+       int                     ue_flags;
        wait_queue_head_t       ue_waitq;
-       cfs_time_t              ue_acquire_expire;
-       cfs_time_t              ue_expire;
+       cfs_time_t              ue_acquire_expire;
+       cfs_time_t              ue_expire;
        union {
-               struct md_identity     identity;
+               struct md_identity      identity;
        } u;
 };
 
@@ -118,7 +119,7 @@ struct upcall_cache_ops {
 };
 
 struct upcall_cache {
-       cfs_list_t              uc_hashtable[UC_CACHE_HASH_SIZE];
+       struct list_head        uc_hashtable[UC_CACHE_HASH_SIZE];
        spinlock_t              uc_lock;
        rwlock_t                uc_upcall_rwlock;