Linux 6.13-rc4
[linux.git] / fs / btrfs / export.h
blob464582273af9262ff1e093f40eff67fa6bff6fdc
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef BTRFS_EXPORT_H
4 #define BTRFS_EXPORT_H
6 #include <linux/exportfs.h>
7 #include <linux/types.h>
9 struct dentry;
10 struct super_block;
12 extern const struct export_operations btrfs_export_ops;
14 struct btrfs_fid {
15 u64 objectid;
16 u64 root_objectid;
17 u32 gen;
19 u64 parent_objectid;
20 u32 parent_gen;
22 u64 parent_root_objectid;
23 } __attribute__ ((packed));
25 struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
26 u64 root_objectid, u64 generation);
27 struct dentry *btrfs_get_parent(struct dentry *child);
29 #endif