summaryrefslogtreecommitdiff
path: root/ctree.h
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2014-12-03 12:18:28 +0800
committerDavid Sterba <dsterba@suse.cz>2014-12-10 11:53:25 +0100
commit260675657767bf6cc90cff762efcf9091674ccaf (patch)
treee1ce54b04128b15527ec55bb8da00a86672dae97 /ctree.h
parent662d1dddcad79839f1cbc13cb0be3ec326af2933 (diff)
downloadbtrfs-progs-260675657767bf6cc90cff762efcf9091674ccaf.tar.gz
btrfs-progs: Import btrfs_insert/del/lookup_extref() functions.
Import btrfs_insert/del/lookup_extref() functions form kernel for the incoming btrfs_add_link() and btrfs_unlink() functions. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'ctree.h')
-rw-r--r--ctree.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/ctree.h b/ctree.h
index 5a60bd2..b3c22bb 100644
--- a/ctree.h
+++ b/ctree.h
@@ -2390,6 +2390,19 @@ int btrfs_insert_inode(struct btrfs_trans_handle *trans, struct btrfs_root
int btrfs_lookup_inode(struct btrfs_trans_handle *trans, struct btrfs_root
*root, struct btrfs_path *path,
struct btrfs_key *location, int mod);
+struct btrfs_inode_extref *btrfs_lookup_inode_extref(struct btrfs_trans_handle
+ *trans, struct btrfs_path *path, struct btrfs_root *root,
+ u64 ino, u64 parent_ino, u64 index, const char *name,
+ int namelen, int ins_len);
+int btrfs_del_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);
+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);
/* file-item.c */
int btrfs_del_csums(struct btrfs_trans_handle *trans,