18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ci#ifndef BTRFS_EXPORT_H 48c2ecf20Sopenharmony_ci#define BTRFS_EXPORT_H 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#include <linux/exportfs.h> 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ciextern const struct export_operations btrfs_export_ops; 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_cistruct btrfs_fid { 118c2ecf20Sopenharmony_ci u64 objectid; 128c2ecf20Sopenharmony_ci u64 root_objectid; 138c2ecf20Sopenharmony_ci u32 gen; 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci u64 parent_objectid; 168c2ecf20Sopenharmony_ci u32 parent_gen; 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci u64 parent_root_objectid; 198c2ecf20Sopenharmony_ci} __attribute__ ((packed)); 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_cistruct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid, 228c2ecf20Sopenharmony_ci u64 root_objectid, u64 generation, 238c2ecf20Sopenharmony_ci int check_generation); 248c2ecf20Sopenharmony_cistruct dentry *btrfs_get_parent(struct dentry *child); 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci#endif 27