export.h 568 B

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