Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230861
b: refs/heads/master
c: 2c67559
h: refs/heads/master
i:
  230859: 824f4fa
v: v3
  • Loading branch information
Nick Piggin authored and Nick Piggin committed Jan 14, 2011
1 parent 61057fd commit 925d664
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 90dbb77ba48dddb87445d238e84cd137cf97dd98
refs/heads/master: 2c6755988afc003a0332406a134fb6a1626f9b28
5 changes: 3 additions & 2 deletions trunk/include/linux/list_bl.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* some fast and compact auxiliary data.
*/

#if defined(CONFIG_SMP) || defined(CONFIG_DEBUG_SPINLOCK)
#if defined(CONFIG_SMP)
#define LIST_BL_LOCKMASK 1UL
#else
#define LIST_BL_LOCKMASK 0UL
Expand Down Expand Up @@ -62,7 +62,8 @@ static inline void hlist_bl_set_first(struct hlist_bl_head *h,
struct hlist_bl_node *n)
{
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);
}

Expand Down
3 changes: 2 additions & 1 deletion trunk/include/linux/rculist_bl.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ static inline void hlist_bl_set_first_rcu(struct hlist_bl_head *h,
struct hlist_bl_node *n)
{
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);
rcu_assign_pointer(h->first,
(struct hlist_bl_node *)((unsigned long)n | LIST_BL_LOCKMASK));
}
Expand Down

0 comments on commit 925d664

Please sign in to comment.