Skip to content

Commit 7fcf8a0

Browse files
josefbacikkdave
authored andcommitted
btrfs: remove useless WARN_ON in record_root_in_trans
We don't set SHAREABLE on the extent root, we don't need to have this safety check here. Signed-off-by: Josef Bacik <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 7939dd9 commit 7fcf8a0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/btrfs/transaction.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,6 @@ static int record_root_in_trans(struct btrfs_trans_handle *trans,
419419

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

425424
/*

0 commit comments

Comments
 (0)