git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
btrfs: use BUG() instead of BUG_ON(1)
[sfrench/cifs-2.6.git]
/
fs
/
btrfs
/
backref.c
diff --git
a/fs/btrfs/backref.c
b/fs/btrfs/backref.c
index 11459fe84a2965f795cfe6be3f91b9805fb72354..2602072ed906b7775d41a53dd642f0934b4827d3 100644
(file)
--- a/
fs/btrfs/backref.c
+++ b/
fs/btrfs/backref.c
@@
-791,7
+791,7
@@
static int add_delayed_refs(const struct btrfs_fs_info *fs_info,
count = node->ref_mod * -1;
break;
default:
- BUG
_ON(1
);
+ BUG
(
);
}
*total_refs += count;
switch (node->type) {
@@
-1747,7
+1747,7
@@
int extent_from_logical(struct btrfs_fs_info *fs_info, u64 logical,
else if (flags & BTRFS_EXTENT_FLAG_DATA)
*flags_ret = BTRFS_EXTENT_FLAG_DATA;
else
- BUG
_ON(1
);
+ BUG
(
);
return 0;
}