|
@@ -16,7 +16,7 @@
|
|
* some fast and compact auxiliary data.
|
|
* some fast and compact auxiliary data.
|
|
*/
|
|
*/
|
|
|
|
|
|
-#if defined(CONFIG_SMP) || defined(CONFIG_DEBUG_SPINLOCK)
|
|
|
|
|
|
+#if defined(CONFIG_SMP)
|
|
#define LIST_BL_LOCKMASK 1UL
|
|
#define LIST_BL_LOCKMASK 1UL
|
|
#else
|
|
#else
|
|
#define LIST_BL_LOCKMASK 0UL
|
|
#define LIST_BL_LOCKMASK 0UL
|
|
@@ -62,7 +62,8 @@ static inline void hlist_bl_set_first(struct hlist_bl_head *h,
|
|
struct hlist_bl_node *n)
|
|
struct hlist_bl_node *n)
|
|
{
|
|
{
|
|
LIST_BL_BUG_ON((unsigned long)n & LIST_BL_LOCKMASK);
|
|
LIST_BL_BUG_ON((unsigned long)n & LIST_BL_LOCKMASK);
|
|
- LIST_BL_BUG_ON(!((unsigned long)h->first & LIST_BL_LOCKMASK));
|
|
|
|
|
|
+ LIST_BL_BUG_ON(((unsigned long)h->first & LIST_BL_LOCKMASK) !=
|
|
|
|
+ LIST_BL_LOCKMASK);
|
|
h->first = (struct hlist_bl_node *)((unsigned long)n | LIST_BL_LOCKMASK);
|
|
h->first = (struct hlist_bl_node *)((unsigned long)n | LIST_BL_LOCKMASK);
|
|
}
|
|
}
|
|
|
|
|