summaryrefslogtreecommitdiff
path: root/ctree.h
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2014-12-03 12:18:30 +0800
committerDavid Sterba <dsterba@suse.cz>2014-12-10 13:13:06 +0100
commit0cc75eddd093d32c39830b95ddbba5d79d7ca69b (patch)
tree3b3b6236006a3b05b986b9c3bf1acddad5b73adf /ctree.h
parented3a206c8f4d71469db5899a5a4d6659b315489e (diff)
btrfs-progs: Add btrfs_unlink() and btrfs_add_link() functions.
Add btrfs_unlink() and btrfs_add_link() functions in inode.c, for the incoming btrfs_mkdir() and later inode operations 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 b8c3062b..001af63b 100644
--- a/ctree.h
+++ b/ctree.h
@@ -2441,4 +2441,17 @@ static inline int is_fstree(u64 rootid)
return 1;
return 0;
}
+
+/* inode.c */
+int check_dir_conflict(struct btrfs_root *root, char *name, int namelen,
+ u64 dir, u64 index);
+int btrfs_add_link(struct btrfs_trans_handle *trans, struct btrfs_root *root,
+ u64 ino, u64 parent_ino, char *name, int namelen,
+ u8 type, u64 *index, int add_backref);
+int btrfs_unlink(struct btrfs_trans_handle *trans, struct btrfs_root *root,
+ u64 ino, u64 parent_ino, u64 index, const char *name,
+ int namelen, int add_orphan);
+int btrfs_add_orphan_item(struct btrfs_trans_handle *trans,
+ struct btrfs_root *root, struct btrfs_path *path,
+ u64 ino);
#endif