Whamcloud - gitweb
LU-3963 libcfs: convert obdecho,obdclass code to atomics
[fs/lustre-release.git] / lustre / obdclass / local_storage.h
index 9f50128..4471877 100644 (file)
@@ -29,6 +29,8 @@
  *
  * Author: Mikhail Pershin <mike.pershin@intel.com>
  */
+#ifndef __LOCAL_STORAGE_H
+#define __LOCAL_STORAGE_H
 
 #include <dt_object.h>
 #include <obd.h>
@@ -40,7 +42,7 @@ struct ls_device {
        /* all initialized ls_devices on this node linked by this */
        cfs_list_t               ls_linkage;
        /* how many handle's reference this local storage */
-       cfs_atomic_t             ls_refcount;
+       atomic_t                 ls_refcount;
        /* underlaying OSD device */
        struct dt_device        *ls_osd;
        /* list of all local OID storages */
@@ -87,3 +89,4 @@ struct los_ondisk {
 
 #define LOS_MAGIC      0xdecafbee
 
+#endif