]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: add checks to verify dir items are correct
authorJosef Bacik <josef@redhat.com>
Wed, 16 Mar 2011 20:47:17 +0000 (16:47 -0400)
committerJosef Bacik <josef@redhat.com>
Thu, 17 Mar 2011 18:21:41 +0000 (14:21 -0400)
commitd469fe35bcb37ad022d67842971ea954982ae47b
tree50e5c7dd52ccf9292240de995e5b42b1619bcd82
parentec8bc5b2f1dae3d35733e8a0beb36520d75d2bbe
Btrfs: add checks to verify dir items are correct

We need to make sure the dir items we get are valid dir items.  So any time we
try and read one check it with verify_dir_item, which will do various sanity
checks to make sure it looks sane.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/ctree.h
fs/btrfs/dir-item.c
fs/btrfs/inode.c
fs/btrfs/tree-log.c
fs/btrfs/xattr.c