Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
7c962f79
Commit
7c962f79
authored
May 05, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix missed parts in the BH locking patch
parent
ac0f5e76
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
fs/reiserfs/inode.c
fs/reiserfs/inode.c
+2
-2
include/linux/list.h
include/linux/list.h
+8
-0
No files found.
fs/reiserfs/inode.c
View file @
7c962f79
...
...
@@ -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
)
{
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
)
;
}
//
...
...
include/linux/list.h
View file @
7c962f79
...
...
@@ -153,6 +153,14 @@ static __inline__ void list_splice(struct list_head *list, struct list_head *hea
#define list_for_each(pos, head) \
for (pos = (head)->next, prefetch(pos->next); pos != (head); \
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment