summaryrefslogtreecommitdiff
path: root/fs/btrfs/export.h
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <mpdesouza@suse.com>2020-02-21 16:56:12 +0300
committerDavid Sterba <dsterba@suse.com>2020-03-23 19:01:42 +0300
commitc0c907a47dccf2cf26251a8fb4a8e7a3bf79ce84 (patch)
tree6d4ea46fc39badcefcf1cd6a94d0b8b48a4817af /fs/btrfs/export.h
parent748449cdbe434731aac68c8829158741a6f8f249 (diff)
downloadlinux-c0c907a47dccf2cf26251a8fb4a8e7a3bf79ce84.tar.xz
btrfs: export helpers for subvolume name/id resolution
The functions will be used outside of export.c and super.c to allow resolving subvolume name from a given id, eg. for subvolume deletion by id ioctl. Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> [ split from the next patch ] Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/export.h')
-rw-r--r--fs/btrfs/export.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/export.h b/fs/btrfs/export.h
index 57488ecd7d4e..f32f4113c976 100644
--- a/fs/btrfs/export.h
+++ b/fs/btrfs/export.h
@@ -18,4 +18,9 @@ struct btrfs_fid {
u64 parent_root_objectid;
} __attribute__ ((packed));
+struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
+ u64 root_objectid, u32 generation,
+ int check_generation);
+struct dentry *btrfs_get_parent(struct dentry *child);
+
#endif