]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: tree-log.c: Wrong printk information about namelen
authorSu Yue <suy.fnst@cn.fujitsu.com>
Wed, 24 May 2017 01:31:32 +0000 (09:31 +0800)
committerChris Mason <clm@fb.com>
Fri, 9 Jun 2017 19:48:07 +0000 (12:48 -0700)
commite538b0481b07ea8a0b981e3e866278575e9176e7
tree4698eb35fac1b2cfecef57c289fafb2351c47c70
parentb207104e1719d7bc14d2235d55ad11697d828afa
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>
fs/btrfs/dir-item.c