projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b335b00
)
Btrfs: balance_level checks !child after access
author
Jeff Mahoney
<jeffm@suse.com>
Thu, 12 Feb 2009 15:06:15 +0000
(10:06 -0500)
committer
Chris Mason
<chris.mason@oracle.com>
Thu, 12 Feb 2009 15:06:15 +0000
(10:06 -0500)
The BUG_ON() is in the wrong spot.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/ctree.c
b/fs/btrfs/ctree.c
index 35443cc4b9a976607f41866d68c202855c1bf16b..6674692f70232fc69e762d375e2320d5d58d7bd5 100644
(file)
--- a/
fs/btrfs/ctree.c
+++ b/
fs/btrfs/ctree.c
@@
-917,9
+917,9
@@
static noinline int balance_level(struct btrfs_trans_handle *trans,
/* promote the child to a root */
child = read_node_slot(root, mid, 0);
+ BUG_ON(!child);
btrfs_tree_lock(child);
btrfs_set_lock_blocking(child);
- BUG_ON(!child);
ret = btrfs_cow_block(trans, root, child, mid, 0, &child, 0);
BUG_ON(ret);