aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2021-11-05 16:45:50 -0400
committerDavid Sterba <dsterba@suse.com>2022-01-03 15:09:49 +0100
commit7fcf8a0050df003776d10602c9c52b57212f3345 (patch)
tree98c9c02b464028f2f44d4a0cbdef38ed66936615 /fs/btrfs/transaction.c
parentbtrfs: stop accessing ->free_space_root directly (diff)
downloadlinux-dev-7fcf8a0050df003776d10602c9c52b57212f3345.tar.xz
linux-dev-7fcf8a0050df003776d10602c9c52b57212f3345.zip
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 <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r--fs/btrfs/transaction.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index cc83ae624b4b..5eadb17b971b 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -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);
/*