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
ee2461d6
Commit
ee2461d6
authored
May 31, 2002
by
Oleg Drokin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix_node.c:
reiserfs: tb_buffer_sanity_check panic message text cleanup. From Josh MacDonald.
parent
78d0e4f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
fs/reiserfs/fix_node.c
fs/reiserfs/fix_node.c
+13
-7
No files found.
fs/reiserfs/fix_node.c
View file @
ee2461d6
...
...
@@ -2092,21 +2092,27 @@ static void tb_buffer_sanity_check (struct super_block * p_s_sb,
if
(
p_s_bh
)
{
if
(
atomic_read
(
&
(
p_s_bh
->
b_count
))
<=
0
)
{
reiserfs_panic
(
p_s_sb
,
"tb_buffer_sanity_check(): negative or zero reference counter for buffer %s[%d] (%b)
\n
"
,
descr
,
level
,
p_s_bh
);
reiserfs_panic
(
p_s_sb
,
"
jmacd-1:
tb_buffer_sanity_check(): negative or zero reference counter for buffer %s[%d] (%b)
\n
"
,
descr
,
level
,
p_s_bh
);
}
if
(
!
buffer_uptodate
(
p_s_bh
)
)
{
reiserfs_panic
(
p_s_sb
,
"tb_buffer_sanity_check(): buffer is not up to date %s[%d] (%b)
\n
"
,
descr
,
level
,
p_s_bh
);
reiserfs_panic
(
p_s_sb
,
"
jmacd-2:
tb_buffer_sanity_check(): buffer is not up to date %s[%d] (%b)
\n
"
,
descr
,
level
,
p_s_bh
);
}
if
(
!
B_IS_IN_TREE
(
p_s_bh
)
)
{
reiserfs_panic
(
p_s_sb
,
"tb_buffer_sanity_check(): buffer is not in tree %s[%d] (%b)
\n
"
,
descr
,
level
,
p_s_bh
);
reiserfs_panic
(
p_s_sb
,
"
jmacd-3:
tb_buffer_sanity_check(): buffer is not in tree %s[%d] (%b)
\n
"
,
descr
,
level
,
p_s_bh
);
}
if
(
p_s_bh
->
b_bdev
!=
p_s_sb
->
s_bdev
||
p_s_bh
->
b_size
!=
p_s_sb
->
s_blocksize
||
p_s_bh
->
b_blocknr
>
SB_BLOCK_COUNT
(
p_s_sb
))
{
reiserfs_panic
(
p_s_sb
,
"tb_buffer_sanity_check(): check failed for buffer %s[%d] (%b)
\n
"
,
descr
,
level
,
p_s_bh
);
if
(
p_s_bh
->
b_bdev
!=
p_s_sb
->
s_bdev
)
{
reiserfs_panic
(
p_s_sb
,
"jmacd-4: tb_buffer_sanity_check(): buffer has wrong device %s[%d] (%b)
\n
"
,
descr
,
level
,
p_s_bh
);
}
if
(
p_s_bh
->
b_size
!=
p_s_sb
->
s_blocksize
)
{
reiserfs_panic
(
p_s_sb
,
"jmacd-5: tb_buffer_sanity_check(): buffer has wrong blocksize %s[%d] (%b)
\n
"
,
descr
,
level
,
p_s_bh
);
}
if
(
p_s_bh
->
b_blocknr
>
SB_BLOCK_COUNT
(
p_s_sb
))
{
reiserfs_panic
(
p_s_sb
,
"jmacd-6: tb_buffer_sanity_check(): buffer block number too high %s[%d] (%b)
\n
"
,
descr
,
level
,
p_s_bh
);
}
}
}
...
...
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