diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index e7771c4c4f38..5f1200e69692 100644 --- a/fs/btrfs/relocation.c +++ b/fs/btrfs/relocation.c @@ -3200,13 +3200,12 @@ again: goto again; } } - if (ret) { + if (WARN_ON(ret)) { ASSERT(ret == 1); btrfs_print_leaf(path->nodes[0]); btrfs_err(fs_info, "tree block extent item (%llu) is not found in extent tree", bytenr); - WARN_ON(1); return -EINVAL; }