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
49e97b6d
Commit
49e97b6d
authored
May 06, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV4]: Two minor errors in jiffies changes.
parent
07684b51
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
net/ipv4/route.c
net/ipv4/route.c
+2
-2
No files found.
net/ipv4/route.c
View file @
49e97b6d
...
@@ -441,7 +441,7 @@ static int rt_may_expire(struct rtable *rth, unsigned long tmo1, unsigned long t
...
@@ -441,7 +441,7 @@ static int rt_may_expire(struct rtable *rth, unsigned long tmo1, unsigned long t
ret
=
1
;
ret
=
1
;
if
(
rth
->
u
.
dst
.
expires
&&
if
(
rth
->
u
.
dst
.
expires
&&
time_after
(
jiffies
,
rth
->
u
.
dst
.
expires
))
time_after
_eq
(
jiffies
,
rth
->
u
.
dst
.
expires
))
goto
out
;
goto
out
;
age
=
jiffies
-
rth
->
u
.
dst
.
lastuse
;
age
=
jiffies
-
rth
->
u
.
dst
.
lastuse
;
...
@@ -472,7 +472,7 @@ static void SMP_TIMER_NAME(rt_check_expire)(unsigned long dummy)
...
@@ -472,7 +472,7 @@ static void SMP_TIMER_NAME(rt_check_expire)(unsigned long dummy)
while
((
rth
=
*
rthp
)
!=
NULL
)
{
while
((
rth
=
*
rthp
)
!=
NULL
)
{
if
(
rth
->
u
.
dst
.
expires
)
{
if
(
rth
->
u
.
dst
.
expires
)
{
/* Entry is expired even if it is in use */
/* Entry is expired even if it is in use */
if
(
time_after
(
now
,
rth
->
u
.
dst
.
expires
))
{
if
(
time_after
_eq
(
now
,
rth
->
u
.
dst
.
expires
))
{
tmo
>>=
1
;
tmo
>>=
1
;
rthp
=
&
rth
->
u
.
rt_next
;
rthp
=
&
rth
->
u
.
rt_next
;
continue
;
continue
;
...
...
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