Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: 80e78fcce86de0288793a0ef0f6acf37656ee4cf authored by Linus Torvalds on 11 September 2022, 20:22:01 UTC
Linux 6.0-rc5
Tip revision: 80e78fc
export.h
/* SPDX-License-Identifier: GPL-2.0 */

#ifndef BTRFS_EXPORT_H
#define BTRFS_EXPORT_H

#include <linux/exportfs.h>

extern const struct export_operations btrfs_export_ops;

struct btrfs_fid {
	u64 objectid;
	u64 root_objectid;
	u32 gen;

	u64 parent_objectid;
	u32 parent_gen;

	u64 parent_root_objectid;
} __attribute__ ((packed));

struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
				u64 root_objectid, u32 generation,
				int check_generation);
struct dentry *btrfs_get_parent(struct dentry *child);

#endif
back to top