Skip to content

Commit 286b92f

Browse files
Su Yuemasoncl
authored andcommitted
btrfs: tree-log.c: Wrong printk information about namelen
In verify_dir_item, it wants to printk name_len of dir_item but printk data_len acutally. Fix it by calling btrfs_dir_name_len instead of btrfs_dir_data_len. Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com> Signed-off-by: Chris Mason <clm@fb.com>
1 parent a9b3311 commit 286b92f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/dir-item.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ int verify_dir_item(struct btrfs_fs_info *fs_info,
468468

469469
if (btrfs_dir_name_len(leaf, dir_item) > namelen) {
470470
btrfs_crit(fs_info, "invalid dir item name len: %u",
471-
(unsigned)btrfs_dir_data_len(leaf, dir_item));
471+
(unsigned)btrfs_dir_name_len(leaf, dir_item));
472472
return 1;
473473
}
474474

0 commit comments

Comments
 (0)