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
66032dd1
Commit
66032dd1
authored
Nov 06, 2002
by
Christoph Hellwig
Committed by
Nathan Scott
Nov 06, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] fix jiffies (lbolt) compare
SGI Modid: 2.5.x-xfs:slinx:130589a
parent
d9627cf4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
fs/xfs/linux/xfs_linux.h
fs/xfs/linux/xfs_linux.h
+0
-1
fs/xfs/xfs_buf_item.c
fs/xfs/xfs_buf_item.c
+2
-2
No files found.
fs/xfs/linux/xfs_linux.h
View file @
66032dd1
...
@@ -153,7 +153,6 @@ typedef struct xfs_dirent { /* data from readdir() */
...
@@ -153,7 +153,6 @@ typedef struct xfs_dirent { /* data from readdir() */
#define EFSCORRUPTED 990
/* Filesystem is corrupted */
#define EFSCORRUPTED 990
/* Filesystem is corrupted */
#define SYNCHRONIZE() barrier()
#define SYNCHRONIZE() barrier()
#define lbolt jiffies
#define rootdev ROOT_DEV
#define rootdev ROOT_DEV
#define __return_address __builtin_return_address(0)
#define __return_address __builtin_return_address(0)
#define LONGLONG_MAX 9223372036854775807LL
/* max "long long int" */
#define LONGLONG_MAX 9223372036854775807LL
/* max "long long int" */
...
...
fs/xfs/xfs_buf_item.c
View file @
66032dd1
...
@@ -1029,12 +1029,12 @@ xfs_buf_iodone_callbacks(
...
@@ -1029,12 +1029,12 @@ xfs_buf_iodone_callbacks(
}
}
if
((
XFS_BUF_TARGET_DEV
(
bp
)
!=
lastdev
)
||
if
((
XFS_BUF_TARGET_DEV
(
bp
)
!=
lastdev
)
||
((
lbolt
-
lasttime
)
>
500
))
{
(
time_after
(
jiffies
,
(
lasttime
+
5
*
HZ
))))
{
lasttime
=
jiffies
;
prdev
(
"XFS write error in file system meta-data "
prdev
(
"XFS write error in file system meta-data "
"block 0x%Lx in %s"
,
"block 0x%Lx in %s"
,
XFS_BUF_TARGET_DEV
(
bp
),
XFS_BUF_TARGET_DEV
(
bp
),
XFS_BUF_ADDR
(
bp
),
mp
->
m_fsname
);
XFS_BUF_ADDR
(
bp
),
mp
->
m_fsname
);
lasttime
=
lbolt
;
}
}
lastdev
=
XFS_BUF_TARGET_DEV
(
bp
);
lastdev
=
XFS_BUF_TARGET_DEV
(
bp
);
...
...
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