diff options
-rw-r--r-- | fs/btrfs/ctree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 35443cc4b9a9..6674692f7023 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c | |||
@@ -917,9 +917,9 @@ static noinline int balance_level(struct btrfs_trans_handle *trans, | |||
917 | 917 | ||
918 | /* promote the child to a root */ | 918 | /* promote the child to a root */ |
919 | child = read_node_slot(root, mid, 0); | 919 | child = read_node_slot(root, mid, 0); |
920 | BUG_ON(!child); | ||
920 | btrfs_tree_lock(child); | 921 | btrfs_tree_lock(child); |
921 | btrfs_set_lock_blocking(child); | 922 | btrfs_set_lock_blocking(child); |
922 | BUG_ON(!child); | ||
923 | ret = btrfs_cow_block(trans, root, child, mid, 0, &child, 0); | 923 | ret = btrfs_cow_block(trans, root, child, mid, 0, &child, 0); |
924 | BUG_ON(ret); | 924 | BUG_ON(ret); |
925 | 925 | ||