mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
b307f06d37
Callers that pass non-zero generation always want to perform the generation check, we can simply encode that in one parameter and drop check_generation. Add function documentation. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: David Sterba <dsterba@suse.com>
26 lines
507 B
C
26 lines
507 B
C
/* 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, u64 generation);
|
|
struct dentry *btrfs_get_parent(struct dentry *child);
|
|
|
|
#endif
|