]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit22a94d44bd6876a90630338229da6c0436d46593
tree50e5c7dd52ccf9292240de995e5b42b1619bcd82
parent41415730a1050499fbd63b3f7dd59b3a4c3bb91a
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