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)
commit286b92f43c0d0ae2c29a61769b66219fe5ae6701
tree4698eb35fac1b2cfecef57c289fafb2351c47c70
parenta9b3311ef36b670909ea4443f306c8318082c8f0
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