blob: 15db024621414efab3eca2f04b581bd37eae898b [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef BTRFS_EXPORT_H
3#define BTRFS_EXPORT_H
4
5#include <linux/exportfs.h>
6
7extern const struct export_operations btrfs_export_ops;
8
9struct btrfs_fid {
10 u64 objectid;
11 u64 root_objectid;
12 u32 gen;
13
14 u64 parent_objectid;
15 u32 parent_gen;
16
17 u64 parent_root_objectid;
18} __attribute__ ((packed));
19
20struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
21 u64 root_objectid, u32 generation,
22 int check_generation);
23struct dentry *btrfs_get_parent(struct dentry *child);
24
25#endif