[DRBD-cvs] r1554 - branches/drbd-0.7/drbd

svn at svn.drbd.org svn at svn.drbd.org
Thu Sep 23 17:50:41 CEST 2004


Author: lars
Date: 2004-09-23 17:50:38 +0200 (Thu, 23 Sep 2004)
New Revision: 1554

Modified:
   branches/drbd-0.7/drbd/lru_cache.h
Log:
yet an other missing define for 2.4.9-whatever ...

Modified: branches/drbd-0.7/drbd/lru_cache.h
===================================================================
--- branches/drbd-0.7/drbd/lru_cache.h	2004-09-23 14:34:55 UTC (rev 1553)
+++ branches/drbd-0.7/drbd/lru_cache.h	2004-09-23 15:50:38 UTC (rev 1554)
@@ -68,6 +68,11 @@
 	   __x > __y ? __x: __y; })
 #endif
 
+#ifndef BUG_ON
+	/* for ancient 2.4 kernels */
+# define BUG_ON(condition) do { if (unlikely((condition)!=0)) BUG(); } while(0)
+#endif
+
 struct lc_element {
 	struct hlist_node colision;
 	struct list_head list;           // LRU list or free list



More information about the drbd-cvs mailing list