Messages in this thread Patch in this message | | | From | "Matthew Wilcox (Oracle)" <> | Subject | [PATCH 10/17] hlist_bl: Make the split_lock parameter mandatory | Date | Fri, 9 Apr 2021 03:51:24 +0100 |
| |
Now that all users have been converted, require the split_lock parameter be passed to hlist_bl_lock() and hlist_bl_unlock().
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> --- include/linux/list_bl.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/linux/list_bl.h b/include/linux/list_bl.h index 1bfdb441c8bc..eb1faa4a4e8c 100644 --- a/include/linux/list_bl.h +++ b/include/linux/list_bl.h @@ -143,9 +143,9 @@ static inline void hlist_bl_del_init(struct hlist_bl_node *n) } } -static inline void hlist_bl_lock(struct hlist_bl_head *b, ...) +static inline void hlist_bl_lock(struct hlist_bl_head *b, struct split_lock *sl) { - bit_spin_lock(0, (unsigned long *)b); + bit_spin_lock(0, (unsigned long *)b, sl); } static inline void hlist_bl_lock_nested(struct hlist_bl_head *b, @@ -155,9 +155,9 @@ static inline void hlist_bl_lock_nested(struct hlist_bl_head *b, } static inline void hlist_bl_unlock(struct hlist_bl_head *b, - ...) + struct split_lock *sl) { - __bit_spin_unlock(0, (unsigned long *)b); + __bit_spin_unlock(0, (unsigned long *)b, sl); } static inline bool hlist_bl_is_locked(struct hlist_bl_head *b) -- 2.30.2
| |