summaryrefslogtreecommitdiff
path: root/ctree.h
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@redhat.com>2008-07-24 12:13:32 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2008-07-24 12:13:32 -0400
commit059c20b3846fb02ce999265820a2c3856f3692aa (patch)
treefcf61abc3be4c546f4ed13fe4e040e05353fa205 /ctree.h
parent9864c90760e7c0f287cc616d5f71a674efbbc5ea (diff)
btrfs-progs new dir index support
Diffstat (limited to 'ctree.h')
-rw-r--r--ctree.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ctree.h b/ctree.h
index a5a284c6..d6467f6f 100644
--- a/ctree.h
+++ b/ctree.h
@@ -349,6 +349,7 @@ struct btrfs_dev_extent {
} __attribute__ ((__packed__));
struct btrfs_inode_ref {
+ __le64 index;
__le16 name_len;
/* name goes here */
} __attribute__ ((__packed__));
@@ -795,6 +796,7 @@ BTRFS_SETGET_STACK_FUNCS(block_group_flags,
/* struct btrfs_inode_ref */
BTRFS_SETGET_FUNCS(inode_ref_name_len, struct btrfs_inode_ref, name_len, 16);
+BTRFS_SETGET_FUNCS(inode_ref_index, struct btrfs_inode_ref, index, 64);
/* struct btrfs_inode_item */
BTRFS_SETGET_FUNCS(inode_generation, struct btrfs_inode_item, generation, 64);
@@ -1461,7 +1463,7 @@ int btrfs_find_highest_inode(struct btrfs_root *fs_root, u64 *objectid);
int btrfs_insert_inode_ref(struct btrfs_trans_handle *trans,
struct btrfs_root *root,
const char *name, int name_len,
- u64 inode_objectid, u64 ref_objectid);
+ u64 inode_objectid, u64 ref_objectid, u64 index);
int btrfs_del_inode_ref(struct btrfs_trans_handle *trans,
struct btrfs_root *root,
const char *name, int name_len,