Commit 7c962f79 authored by Linus Torvalds's avatar Linus Torvalds

Fix missed parts in the BH locking patch

parent ac0f5e76
...@@ -105,9 +105,9 @@ inline void make_le_item_head (struct item_head * ih, const struct cpu_key * key ...@@ -105,9 +105,9 @@ inline void make_le_item_head (struct item_head * ih, const struct cpu_key * key
} }
static void add_to_flushlist(struct inode *inode, struct buffer_head *bh) { static void add_to_flushlist(struct inode *inode, struct buffer_head *bh) {
struct reiserfs_journal *j = &(SB_JOURNAL(inode->i_sb)) ; struct reiserfs_journal *j = SB_JOURNAL(inode->i_sb) ;
buffer_insert_list(j->dirty_buffers_lock, bh, j->j_dirty_buffers) ; buffer_insert_list(&j->j_dirty_buffers_lock, bh, &j->j_dirty_buffers) ;
} }
// //
......
...@@ -153,6 +153,14 @@ static __inline__ void list_splice(struct list_head *list, struct list_head *hea ...@@ -153,6 +153,14 @@ static __inline__ void list_splice(struct list_head *list, struct list_head *hea
#define list_for_each(pos, head) \ #define list_for_each(pos, head) \
for (pos = (head)->next, prefetch(pos->next); pos != (head); \ for (pos = (head)->next, prefetch(pos->next); pos != (head); \
pos = pos->next, prefetch(pos->next)) pos = pos->next, prefetch(pos->next))
/**
* list_for_each_prev - iterate over a list backwards
* @pos: the &struct list_head to use as a loop counter.
* @head: the head for your list.
*/
#define list_for_each_prev(pos, head) \
for (pos = (head)->prev, prefetch(pos->prev); pos != (head); \
pos = pos->prev, prefetch(pos->prev))
/** /**
* list_for_each_safe - iterate over a list safe against removal of list entry * list_for_each_safe - iterate over a list safe against removal of list entry
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment