Skip to content

Commit 5619b09

Browse files
committed
Merge tag 'for-7.0-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
Pull btrfs fix from David Sterba: "One more fix for a potential extent tree corruption due to an unexpected error value. When the search for an extent item failed, it under some circumstances was reported as a success to the caller" * tag 'for-7.0-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux: btrfs: fix incorrect return value after changing leaf in lookup_extent_data_ref()
2 parents f8f5627 + 316fb1b commit 5619b09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/btrfs/extent-tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ static noinline int lookup_extent_data_ref(struct btrfs_trans_handle *trans,
495495
btrfs_item_key_to_cpu(leaf, &key, path->slots[0]);
496496
if (key.objectid != bytenr ||
497497
key.type != BTRFS_EXTENT_DATA_REF_KEY)
498-
return ret;
498+
return -ENOENT;
499499

500500
ref = btrfs_item_ptr(leaf, path->slots[0],
501501
struct btrfs_extent_data_ref);

0 commit comments

Comments
 (0)