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
c293498b
Commit
c293498b
authored
Apr 02, 2009
by
Stoyan Gaydarov
Committed by
Chris Mason
Apr 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: BUG to BUG_ON changes
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
3e7ad38d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
fs/btrfs/ctree.c
fs/btrfs/ctree.c
+1
-2
fs/btrfs/free-space-cache.c
fs/btrfs/free-space-cache.c
+1
-2
fs/btrfs/tree-log.c
fs/btrfs/tree-log.c
+1
-2
No files found.
fs/btrfs/ctree.c
View file @
c293498b
...
...
@@ -2157,8 +2157,7 @@ static int insert_ptr(struct btrfs_trans_handle *trans, struct btrfs_root
BUG_ON
(
!
path
->
nodes
[
level
]);
lower
=
path
->
nodes
[
level
];
nritems
=
btrfs_header_nritems
(
lower
);
if
(
slot
>
nritems
)
BUG
();
BUG_ON
(
slot
>
nritems
);
if
(
nritems
==
BTRFS_NODEPTRS_PER_BLOCK
(
root
))
BUG
();
if
(
slot
!=
nritems
)
{
...
...
fs/btrfs/free-space-cache.c
View file @
c293498b
...
...
@@ -253,8 +253,7 @@ int btrfs_add_free_space(struct btrfs_block_group_cache *block_group,
if
(
ret
)
{
printk
(
KERN_ERR
"btrfs: unable to add free space :%d
\n
"
,
ret
);
if
(
ret
==
-
EEXIST
)
BUG
();
BUG_ON
(
ret
==
-
EEXIST
);
}
return
ret
;
...
...
fs/btrfs/tree-log.c
View file @
c293498b
...
...
@@ -1222,8 +1222,7 @@ static noinline int replay_one_name(struct btrfs_trans_handle *trans,
ret
=
insert_one_name
(
trans
,
root
,
path
,
key
->
objectid
,
key
->
offset
,
name
,
name_len
,
log_type
,
&
log_key
);
if
(
ret
&&
ret
!=
-
ENOENT
)
BUG
();
BUG_ON
(
ret
&&
ret
!=
-
ENOENT
);
goto
out
;
}
...
...
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