GNU Linux-libre 4.9.317-gnu1
[releases.git] / fs / btrfs / export.h
1 #ifndef BTRFS_EXPORT_H
2 #define BTRFS_EXPORT_H
3
4 #include <linux/exportfs.h>
5
6 extern const struct export_operations btrfs_export_ops;
7
8 struct btrfs_fid {
9         u64 objectid;
10         u64 root_objectid;
11         u32 gen;
12
13         u64 parent_objectid;
14         u32 parent_gen;
15
16         u64 parent_root_objectid;
17 } __attribute__ ((packed));
18
19 struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
20                                 u64 root_objectid, u32 generation,
21                                 int check_generation);
22 struct dentry *btrfs_get_parent(struct dentry *child);
23
24 #endif