|
@@ -1464,10 +1464,8 @@ int btrfs_realloc_node(struct btrfs_trans_handle *trans,
|
|
|
if (cache_only && parent_level != 1)
|
|
|
return 0;
|
|
|
|
|
|
- if (trans->transaction != root->fs_info->running_transaction)
|
|
|
- WARN_ON(1);
|
|
|
- if (trans->transid != root->fs_info->generation)
|
|
|
- WARN_ON(1);
|
|
|
+ WARN_ON(trans->transaction != root->fs_info->running_transaction);
|
|
|
+ WARN_ON(trans->transid != root->fs_info->generation);
|
|
|
|
|
|
parent_nritems = btrfs_header_nritems(parent);
|
|
|
blocksize = btrfs_level_size(root, parent_level - 1);
|
|
@@ -3398,8 +3396,7 @@ static noinline int __push_leaf_right(struct btrfs_trans_handle *trans,
|
|
|
if (push_items == 0)
|
|
|
goto out_unlock;
|
|
|
|
|
|
- if (!empty && push_items == left_nritems)
|
|
|
- WARN_ON(1);
|
|
|
+ WARN_ON(!empty && push_items == left_nritems);
|
|
|
|
|
|
/* push left to right */
|
|
|
right_nritems = btrfs_header_nritems(right);
|