xref: /linux/fs/btrfs/export.h (revision b24413180f5600bcb3bb70fbed5cf186b60864bd)
1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2be6e8dc0SBalaji Rao #ifndef BTRFS_EXPORT_H
3be6e8dc0SBalaji Rao #define BTRFS_EXPORT_H
4be6e8dc0SBalaji Rao 
5be6e8dc0SBalaji Rao #include <linux/exportfs.h>
6be6e8dc0SBalaji Rao 
7be6e8dc0SBalaji Rao extern const struct export_operations btrfs_export_ops;
8be6e8dc0SBalaji Rao 
9be6e8dc0SBalaji Rao struct btrfs_fid {
10be6e8dc0SBalaji Rao 	u64 objectid;
11be6e8dc0SBalaji Rao 	u64 root_objectid;
12be6e8dc0SBalaji Rao 	u32 gen;
13be6e8dc0SBalaji Rao 
14be6e8dc0SBalaji Rao 	u64 parent_objectid;
15be6e8dc0SBalaji Rao 	u32 parent_gen;
16be6e8dc0SBalaji Rao 
17be6e8dc0SBalaji Rao 	u64 parent_root_objectid;
18be6e8dc0SBalaji Rao } __attribute__ ((packed));
19be6e8dc0SBalaji Rao 
20be6e8dc0SBalaji Rao #endif
21