From c0af17d07f1122eff07c751dafef3954bcffc822 Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Wed, 3 Dec 2014 12:18:29 +0800 Subject: btrfs-progs: Import lookup/del_inode_ref() function. Import lookup/del_inode_ref() function in inode-item.c, as base functions for the incoming btrfs_add_link() and btrfs_unlink() functions. Also modify btrfs_insert_inode_ref() and split_leaf() making them able to deal with EXTENT_IREF incompat flag. Signed-off-by: Qu Wenruo Signed-off-by: David Sterba --- ctree.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ctree.h') diff --git a/ctree.h b/ctree.h index b3c22bb..b8c3062 100644 --- a/ctree.h +++ b/ctree.h @@ -2403,6 +2403,13 @@ int btrfs_insert_inode_extref(struct btrfs_trans_handle *trans, struct btrfs_root *root, const char *name, int name_len, u64 inode_objectid, u64 ref_objectid, u64 index); +struct btrfs_inode_ref *btrfs_lookup_inode_ref(struct btrfs_trans_handle *trans, + struct btrfs_root *root, struct btrfs_path *path, + const char *name, int namelen, u64 ino, u64 parent_ino, + u64 index, int ins_len); +int btrfs_del_inode_ref(struct btrfs_trans_handle *trans, + struct btrfs_root *root, const char *name, int name_len, + u64 ino, u64 parent_ino, u64 *index); /* file-item.c */ int btrfs_del_csums(struct btrfs_trans_handle *trans, -- cgit v1.2.1