btrfs: fix error message in check_extent_data_ref()
PATCH 1/1 btrfs: fix 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.
Signed-off-by Mark Harmstone <[email protected]>
Fixes f333a3c7e832 ("btrfs: tree-checker: validate dref root and objectid")
--- fs/btrfs/tree-checker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/tree-checker.c +1 -1
@@ -1740,7 +1740,7 @@ static int check_extent_data_ref(struct extent_buffer *leaf, objectid > BTRFS_LAST_FREE_OBJECTID)) {extent_err (leaf, slot,"invalid extent data backref objectid value %llu" , - root); + objectid);return -EUCLEAN ; }if (unlikely (!IS_ALIGNED (offset, leaf->fs_info->sectorsize))) {
Signature · 1 line
2.52.0
Quoted 5 lines · Mark Harmstone
Fix a copy-paste error in
check_extent_data_ref(): we're printing root as in the message above, we should be printing objectid.Signed-off-by Mark Harmstone <[email protected]>Fixes f333a3c7e832 ("btrfs: tree-checker: validate dref root and objectid")
Reviewed-by Qu Wenruo <[email protected]>
Thanks,
Qu
Quoted 17 lines
--- fs/btrfs/tree-checker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/btrfs/tree-checker.c +1
-1@@ -1740,7 +1740,7 @@ static int check_extent_data_ref(struct extent_buffer *leaf, objectid > BTRFS_LAST_FREE_OBJECTID)) {extent_err (leaf, slot,"invalid extent data backref objectid value %llu" , - root); + objectid);return -EUCLEAN ; }if (unlikely (!IS_ALIGNED (offset, leaf->fs_info->sectorsize))) {