diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2014-12-03 12:18:29 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-12-10 11:53:48 +0100 |
commit | c0af17d07f1122eff07c751dafef3954bcffc822 (patch) | |
tree | f2094871ed7118fcece521b715745837f3999634 /ctree.h | |
parent | 260675657767bf6cc90cff762efcf9091674ccaf (diff) |
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 <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'ctree.h')
-rw-r--r-- | ctree.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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, |