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
a3b924e3
Commit
a3b924e3
authored
Apr 22, 2004
by
Nathan Scott
Committed by
Christoph Hellwig
Apr 22, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Make buffer error checking consistent, add a value range check.
SGI Modid: xfs-linux:xfs-kern:169542a
parent
8f20dd0f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
fs/xfs/linux/xfs_buf.c
fs/xfs/linux/xfs_buf.c
+3
-2
fs/xfs/linux/xfs_buf.h
fs/xfs/linux/xfs_buf.h
+1
-1
No files found.
fs/xfs/linux/xfs_buf.c
View file @
a3b924e3
...
@@ -1151,9 +1151,10 @@ pagebuf_iodone(
...
@@ -1151,9 +1151,10 @@ pagebuf_iodone(
void
void
pagebuf_ioerror
(
/* mark/clear buffer error flag */
pagebuf_ioerror
(
/* mark/clear buffer error flag */
xfs_buf_t
*
pb
,
/* buffer to mark */
xfs_buf_t
*
pb
,
/* buffer to mark */
unsigned
int
error
)
/* error to store (0 if none) */
int
error
)
/* error to store (0 if none) */
{
{
pb
->
pb_error
=
error
;
ASSERT
(
error
>=
0
&&
error
<=
0xffff
);
pb
->
pb_error
=
(
unsigned
short
)
error
;
PB_TRACE
(
pb
,
"ioerror"
,
(
unsigned
long
)
error
);
PB_TRACE
(
pb
,
"ioerror"
,
(
unsigned
long
)
error
);
}
}
...
...
fs/xfs/linux/xfs_buf.h
View file @
a3b924e3
...
@@ -250,7 +250,7 @@ extern void pagebuf_iodone( /* mark buffer I/O complete */
...
@@ -250,7 +250,7 @@ extern void pagebuf_iodone( /* mark buffer I/O complete */
extern
void
pagebuf_ioerror
(
/* mark buffer in error (or not) */
extern
void
pagebuf_ioerror
(
/* mark buffer in error (or not) */
xfs_buf_t
*
,
/* buffer to mark */
xfs_buf_t
*
,
/* buffer to mark */
unsigned
int
);
/* error to store (0 if none) */
int
);
/* error to store (0 if none) */
extern
int
pagebuf_iostart
(
/* start I/O on a buffer */
extern
int
pagebuf_iostart
(
/* start I/O on a buffer */
xfs_buf_t
*
,
/* buffer to start */
xfs_buf_t
*
,
/* buffer to start */
...
...
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