aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2011-03-16 16:47:17 -0400
committerJosef Bacik <josef@redhat.com>2011-03-17 14:21:41 -0400
commit22a94d44bd6876a90630338229da6c0436d46593 (patch)
tree50e5c7dd52ccf9292240de995e5b42b1619bcd82 /fs/btrfs/ctree.h
parent41415730a1050499fbd63b3f7dd59b3a4c3bb91a (diff)
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>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 841330f3d68..6036fdb88c5 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -2393,6 +2393,9 @@ struct btrfs_dir_item *btrfs_lookup_xattr(struct btrfs_trans_handle *trans,
2393 struct btrfs_path *path, u64 dir, 2393 struct btrfs_path *path, u64 dir,
2394 const char *name, u16 name_len, 2394 const char *name, u16 name_len,
2395 int mod); 2395 int mod);
2396int verify_dir_item(struct btrfs_root *root,
2397 struct extent_buffer *leaf,
2398 struct btrfs_dir_item *dir_item);
2396 2399
2397/* orphan.c */ 2400/* orphan.c */
2398int btrfs_insert_orphan_item(struct btrfs_trans_handle *trans, 2401int btrfs_insert_orphan_item(struct btrfs_trans_handle *trans,