Skip to content

Commit c4a050b

Browse files
Josef BacikChris Mason
authored andcommitted
Btrfs: abort the transaction when we don't find our extent ref
I'm not sure why we weren't aborting here in the first place, it is obviously a bad time from the fact that we print the leaf and yell loudly about it. Fix this up, otherwise we panic because our path could be pointing into oblivion. Thanks, Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Chris Mason <clm@fb.com>
1 parent 3a29bc0 commit c4a050b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎fs/btrfs/extent-tree.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5745,6 +5745,8 @@ static int __btrfs_free_extent(struct btrfs_trans_handle *trans,
57455745
"unable to find ref byte nr %llu parent %llu root %llu owner %llu offset %llu",
57465746
bytenr, parent, root_objectid, owner_objectid,
57475747
owner_offset);
5748+
btrfs_abort_transaction(trans, extent_root, ret);
5749+
goto out;
57485750
} else {
57495751
btrfs_abort_transaction(trans, extent_root, ret);
57505752
goto out;

0 commit comments

Comments
 (0)