Skip to content

Commit a101727

Browse files
maharmstonekdave
authored andcommitted
btrfs: fix objectid value in error message in check_extent_data_ref()
Fix a copy-paste error in check_extent_data_ref(): we're printing root as in the message above, we should be printing objectid. Fixes: f333a3c ("btrfs: tree-checker: validate dref root and objectid") Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Mark Harmstone <mark@harmstone.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 511dc89 commit a101727

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/btrfs/tree-checker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1740,7 +1740,7 @@ static int check_extent_data_ref(struct extent_buffer *leaf,
17401740
objectid > BTRFS_LAST_FREE_OBJECTID)) {
17411741
extent_err(leaf, slot,
17421742
"invalid extent data backref objectid value %llu",
1743-
root);
1743+
objectid);
17441744
return -EUCLEAN;
17451745
}
17461746
if (unlikely(!IS_ALIGNED(offset, leaf->fs_info->sectorsize))) {

0 commit comments

Comments
 (0)