Skip to content

Commit f96d696

Browse files
adam900710kdave
authored andcommitted
btrfs: tree-checker: fix the error message for transid error
The error message for inode transid is the same as for inode generation, which makes us unable to detect the real problem. Reported-by: Tyler Richmond <[email protected]> Fixes: 496245c ("btrfs: tree-checker: Verify inode item") CC: [email protected] # 5.4+ Reviewed-by: Marcos Paulo de Souza <[email protected]> Signed-off-by: Qu Wenruo <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent d3beaa2 commit f96d696

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/tree-checker.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ static int check_inode_item(struct extent_buffer *leaf,
984984
/* Note for ROOT_TREE_DIR_ITEM, mkfs could set its transid 0 */
985985
if (btrfs_inode_transid(leaf, iitem) > super_gen + 1) {
986986
inode_item_err(leaf, slot,
987-
"invalid inode generation: has %llu expect [0, %llu]",
987+
"invalid inode transid: has %llu expect [0, %llu]",
988988
btrfs_inode_transid(leaf, iitem), super_gen + 1);
989989
return -EUCLEAN;
990990
}

0 commit comments

Comments
 (0)