Commit c4a050bbbb5d7dab03aa720af36d8e91ed7f2ec8
Committed by
Chris Mason
1 parent
3a29bc0928
Exists in
master
and in
13 other branches
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>
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
fs/btrfs/extent-tree.c
... | ... | @@ -5745,6 +5745,8 @@ |
5745 | 5745 | "unable to find ref byte nr %llu parent %llu root %llu owner %llu offset %llu", |
5746 | 5746 | bytenr, parent, root_objectid, owner_objectid, |
5747 | 5747 | owner_offset); |
5748 | + btrfs_abort_transaction(trans, extent_root, ret); | |
5749 | + goto out; | |
5748 | 5750 | } else { |
5749 | 5751 | btrfs_abort_transaction(trans, extent_root, ret); |
5750 | 5752 | goto out; |