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