diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2014-12-03 12:18:28 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-12-10 11:53:25 +0100 |
commit | 260675657767bf6cc90cff762efcf9091674ccaf (patch) | |
tree | e1ce54b04128b15527ec55bb8da00a86672dae97 /ctree.h | |
parent | 662d1dddcad79839f1cbc13cb0be3ec326af2933 (diff) | |
download | btrfs-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.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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, |