btrfs: fix chunk offset error message in check_dev_extent_item()
PATCH 1/1 btrfs: fix chunk offset error message in check_dev_extent_item()
Fix a copy-paste bug in an error message in check_dev_extent_item():
we're reporting an incorrect offset, but actually printing the objectid.
Signed-off-by Mark Harmstone <[email protected]>
Fixes 008e2512dc56 ("btrfs: tree-checker: add dev extent item checks")
--- fs/btrfs/tree-checker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/tree-checker.c +1 -1
@@ -1899,7 +1899,7 @@ static int check_dev_extent_item(const struct extent_buffer *leaf, sectorsize))) {generic_err (leaf, slot,"invalid dev extent chunk offset, has %llu not aligned to %u" , -btrfs_dev_extent_chunk_objectid (leaf, de), +btrfs_dev_extent_chunk_offset (leaf, de), sectorsize);return -EUCLEAN ; }
Signature · 1 line
2.52.0
Quoted 5 lines · Mark Harmstone
Fix a copy-paste bug in an error message in
check_dev_extent_item():
we're reporting an incorrect offset, but actually printing the objectid.Signed-off-by Mark Harmstone <[email protected]>Fixes 008e2512dc56 ("btrfs: tree-checker: add dev extent item checks")
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@@ -1899,7 +1899,7 @@ static int check_dev_extent_item(const struct extent_buffer *leaf, sectorsize))) {generic_err (leaf, slot,"invalid dev extent chunk offset, has %llu not aligned to %u" , -btrfs_dev_extent_chunk_objectid (leaf, de), +btrfs_dev_extent_chunk_offset (leaf, de), sectorsize);return -EUCLEAN ; }