Btrfs: fix verification of dir_item
authorFilipe David Borba Manana <fdmanana@gmail.com>
Mon, 28 Oct 2013 16:28:30 +0000 (16:28 +0000)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 03:10:36 +0000 (22:10 -0500)
commite46f5388cdde0f402f2dded6f1cad614536c6429
tree1a51753979036d5e9344dbd5cfac4075d20e20ea
parent9b011adfe14977fcda977234609d43ca52463a3d
Btrfs: fix verification of dir_item

We were ignoring the name component of the dir_item. Both the
name and data must fit within BTRFS_MAX_XATTR_SIZE(root).

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/dir-item.c