Skip to content

Commit

Permalink
btrfs: remove useless WARN_ON in record_root_in_trans
Browse files Browse the repository at this point in the history
We don't set SHAREABLE on the extent root, we don't need to have this
safety check here.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
  • Loading branch information
Josef Bacik authored and David Sterba committed Jan 3, 2022
1 parent 7939dd9 commit 7fcf8a0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/btrfs/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,6 @@ static int record_root_in_trans(struct btrfs_trans_handle *trans,

if ((test_bit(BTRFS_ROOT_SHAREABLE, &root->state) &&
root->last_trans < trans->transid) || force) {
WARN_ON(root == fs_info->_extent_root);
WARN_ON(!force && root->commit_root != root->node);

/*
Expand Down

0 comments on commit 7fcf8a0

Please sign in to comment.