mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
btrfs: tree-checker: print dev extent offset in error message
If a dev extent's offset is not sector size aligned, the error message is
printing the dev extent's objectid instead of the offset. This is a copy
paste error, as before this check we check the objectid field.
Fixes: 008e2512dc ("btrfs: tree-checker: add dev extent item checks")
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
0594e3423f
commit
a1167d9420
|
|
@ -2129,7 +2129,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user