Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
David Sterba | 9888c34 | 2018-04-03 19:16:55 +0200 | [diff] [blame] | 2 | |
Balaji Rao | be6e8dc | 2008-07-21 02:01:56 +0530 | [diff] [blame] | 3 | #ifndef BTRFS_EXPORT_H |
| 4 | #define BTRFS_EXPORT_H |
| 5 | |
| 6 | #include <linux/exportfs.h> |
| 7 | |
| 8 | extern const struct export_operations btrfs_export_ops; |
| 9 | |
| 10 | struct btrfs_fid { |
| 11 | u64 objectid; |
| 12 | u64 root_objectid; |
| 13 | u32 gen; |
| 14 | |
| 15 | u64 parent_objectid; |
| 16 | u32 parent_gen; |
| 17 | |
| 18 | u64 parent_root_objectid; |
| 19 | } __attribute__ ((packed)); |
| 20 | |
Marcos Paulo de Souza | c0c907a | 2020-02-21 14:56:12 +0100 | [diff] [blame] | 21 | struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid, |
| 22 | u64 root_objectid, u32 generation, |
| 23 | int check_generation); |
| 24 | struct dentry *btrfs_get_parent(struct dentry *child); |
| 25 | |
Balaji Rao | be6e8dc | 2008-07-21 02:01:56 +0530 | [diff] [blame] | 26 | #endif |