path: root/ctree.h
diff options
authorYingyi Luo <>2017-09-15 10:49:21 -0700
committerDavid Sterba <>2017-10-06 13:23:34 +0200
commit8a820b57656c1a062c6445f872a9169fa0d9b381 (patch)
treebde68f90823b5e22c5c067d171dac9d0a32f15e8 /ctree.h
parent8d93d71f6aa521e0a3e078d2c4ab2c406ebd884c (diff)
btrfs-progs: convert: move link_subvol out of main
link_subvol() is moved to inode.c and renamed as btrfs_mksubvol(). The change cascades down to the callchain. Signed-off-by: Yingyi Luo <> Signed-off-by: David Sterba <>
Diffstat (limited to 'ctree.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/ctree.h b/ctree.h
index b5f6ea6b..c8bea34e 100644
--- a/ctree.h
+++ b/ctree.h
@@ -2745,6 +2745,8 @@ int btrfs_add_orphan_item(struct btrfs_trans_handle *trans,
u64 ino);
int btrfs_mkdir(struct btrfs_trans_handle *trans, struct btrfs_root *root,
char *name, int namelen, u64 parent_ino, u64 *ino, int mode);
+struct btrfs_root *btrfs_mksubvol(struct btrfs_root *root, const char *base,
+ u64 root_objectid);
/* file.c */
int btrfs_get_extent(struct btrfs_trans_handle *trans,