mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 23:51:37 +00:00
22b46bdc5f
Do a cleanup in the short headers: - add forward declarations for types referenced by pointers - add includes when types need them This fixes potential compilation problems if the headers are reordered or the missing includes are not provided indirectly. Signed-off-by: David Sterba <dsterba@suse.com>
30 lines
568 B
C
30 lines
568 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef BTRFS_EXPORT_H
|
|
#define BTRFS_EXPORT_H
|
|
|
|
#include <linux/exportfs.h>
|
|
#include <linux/types.h>
|
|
|
|
struct dentry;
|
|
struct super_block;
|
|
|
|
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, u64 generation);
|
|
struct dentry *btrfs_get_parent(struct dentry *child);
|
|
|
|
#endif
|