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