Whamcloud - gitweb
b=17167 cfs_rcu_head cleanup in lustre source
authorMatt Wu <Qiang.Wu@sun.com>
Thu, 29 Jul 2010 06:55:31 +0000 (10:55 +0400)
committerMikhail Pershin <tappro@sun.com>
Fri, 30 Jul 2010 18:58:55 +0000 (22:58 +0400)
i=andreas.dilger
i=maxim.patlasov

libcfs/include/libcfs/winnt/winnt-fs.h
lustre/include/liblustre.h
lustre/include/linux/lustre_handles.h
lustre/include/lustre_handles.h

index 50a4543..98be623 100644 (file)
@@ -376,10 +376,6 @@ int radix_tree_insert(struct radix_tree_root *root, unsigned long index,
                       void *item);
 void *radix_tree_delete(struct radix_tree_root *root, unsigned long index);
 
-typedef struct cfs_rcu_head {
-    int     foo;
-} cfs_rcu_head_t;
-
 #else  /* !__KERNEL__ */
 
 #if !defined(_WINDOWS_)
index ff63241..b77e256 100644 (file)
@@ -137,8 +137,6 @@ extern int echo_client_init(void);
 
 #define EXPORT_SYMBOL(S)
 
-typedef struct cfs_rcu_head { } cfs_rcu_head_t;
-
 typedef __u64 kdev_t;
 
 #ifndef min
index 2407946..29eec05 100644 (file)
@@ -53,8 +53,6 @@
 # ifdef HAVE_RCU
 #  include <linux/rcupdate.h> /* for rcu_head{} */
 typedef struct rcu_head cfs_rcu_head_t;
-# else
-typedef struct cfs_rcu_head { } cfs_rcu_head_t;
 # endif
 
 #endif /* ifdef __KERNEL__ */
index 13bbb3a..afc9ddb 100644 (file)
 
 #include <libcfs/libcfs.h>
 
+#if !defined(HAVE_RCU) || !defined(__KERNEL__)
+typedef struct {
+        int foo;
+} cfs_rcu_head_t;
+#endif
+
 typedef void (*portals_handle_addref_cb)(void *object);
 
 /* These handles are most easily used by having them appear at the very top of