summaryrefslogtreecommitdiff
path: root/fs/btrfs/export.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2022-10-18 17:06:38 +0300
committerDavid Sterba <dsterba@suse.com>2022-12-05 20:00:41 +0300
commitb307f06d37ca12495e4cfff8d456cd92f045f947 (patch)
tree72b2d0f3372457a655fcb43f79ef1ee547ab723b /fs/btrfs/export.h
parent63a7cb13071842966c1ce931edacbc23573aada5 (diff)
downloadlinux-b307f06d37ca12495e4cfff8d456cd92f045f947.tar.xz
btrfs: simplify generation check in btrfs_get_dentry
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>
Diffstat (limited to 'fs/btrfs/export.h')
-rw-r--r--fs/btrfs/export.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/export.h b/fs/btrfs/export.h
index 5afb7ca42828..eba6bc4f5a61 100644
--- a/fs/btrfs/export.h
+++ b/fs/btrfs/export.h
@@ -19,8 +19,7 @@ struct btrfs_fid {
} __attribute__ ((packed));
struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
- u64 root_objectid, u64 generation,
- int check_generation);
+ u64 root_objectid, u64 generation);
struct dentry *btrfs_get_parent(struct dentry *child);
#endif