rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | #ifndef BTRFS_EXPORT_H |
| 3 | #define BTRFS_EXPORT_H |
| 4 | |
| 5 | #include <linux/exportfs.h> |
| 6 | |
| 7 | extern const struct export_operations btrfs_export_ops; |
| 8 | |
| 9 | struct btrfs_fid { |
| 10 | u64 objectid; |
| 11 | u64 root_objectid; |
| 12 | u32 gen; |
| 13 | |
| 14 | u64 parent_objectid; |
| 15 | u32 parent_gen; |
| 16 | |
| 17 | u64 parent_root_objectid; |
| 18 | } __attribute__ ((packed)); |
| 19 | |
| 20 | struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid, |
| 21 | u64 root_objectid, u32 generation, |
| 22 | int check_generation); |
| 23 | struct dentry *btrfs_get_parent(struct dentry *child); |
| 24 | |
| 25 | #endif |