Skip to contentSkip to conversation

btrfs: fix error message in check_extent_data_ref()

PATCH In review Mark Harmstone 2 participants 2 messages Feb 17 Btrfs file system

lore
Share & tools
lore
#0 lore raw

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.

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
index 9774779f060b..ac4c4573ee39 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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.

Fixes f333a3c7e832 ("btrfs: tree-checker: validate dref root and objectid")

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
index 9774779f060b..ac4c4573ee39 100644
@@ -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))) {