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
nexedi
linux
Commits
4dadf5b5
Commit
4dadf5b5
authored
Sep 14, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV4]: Use hlist_for_each_entry_safe in fib_hash_move.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
612fb10a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
net/ipv4/fib_semantics.c
net/ipv4/fib_semantics.c
+4
-4
No files found.
net/ipv4/fib_semantics.c
View file @
4dadf5b5
...
@@ -527,10 +527,10 @@ static void fib_hash_move(struct hlist_head *new_info_hash,
...
@@ -527,10 +527,10 @@ static void fib_hash_move(struct hlist_head *new_info_hash,
for
(
i
=
0
;
i
<
old_size
;
i
++
)
{
for
(
i
=
0
;
i
<
old_size
;
i
++
)
{
struct
hlist_head
*
head
=
&
fib_info_hash
[
i
];
struct
hlist_head
*
head
=
&
fib_info_hash
[
i
];
struct
hlist_node
*
node
;
struct
hlist_node
*
node
,
*
n
;
struct
fib_info
*
fi
;
struct
fib_info
*
fi
;
hlist_for_each_entry
(
fi
,
node
,
head
,
fib_hash
)
{
hlist_for_each_entry
_safe
(
fi
,
node
,
n
,
head
,
fib_hash
)
{
struct
hlist_head
*
dest
;
struct
hlist_head
*
dest
;
unsigned
int
new_hash
;
unsigned
int
new_hash
;
...
@@ -545,10 +545,10 @@ static void fib_hash_move(struct hlist_head *new_info_hash,
...
@@ -545,10 +545,10 @@ static void fib_hash_move(struct hlist_head *new_info_hash,
for
(
i
=
0
;
i
<
old_size
;
i
++
)
{
for
(
i
=
0
;
i
<
old_size
;
i
++
)
{
struct
hlist_head
*
lhead
=
&
fib_info_laddrhash
[
i
];
struct
hlist_head
*
lhead
=
&
fib_info_laddrhash
[
i
];
struct
hlist_node
*
node
;
struct
hlist_node
*
node
,
*
n
;
struct
fib_info
*
fi
;
struct
fib_info
*
fi
;
hlist_for_each_entry
(
fi
,
node
,
lhead
,
fib_lhash
)
{
hlist_for_each_entry
_safe
(
fi
,
node
,
n
,
lhead
,
fib_lhash
)
{
struct
hlist_head
*
ldest
;
struct
hlist_head
*
ldest
;
unsigned
int
new_hash
;
unsigned
int
new_hash
;
...
...
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