export.h 533 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef BTRFS_EXPORT_H
  3. #define BTRFS_EXPORT_H
  4. #include <linux/exportfs.h>
  5. extern const struct export_operations btrfs_export_ops;
  6. struct btrfs_fid {
  7. u64 objectid;
  8. u64 root_objectid;
  9. u32 gen;
  10. u64 parent_objectid;
  11. u32 parent_gen;
  12. u64 parent_root_objectid;
  13. } __attribute__ ((packed));
  14. struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
  15. u64 root_objectid, u32 generation,
  16. int check_generation);
  17. struct dentry *btrfs_get_parent(struct dentry *child);
  18. #endif