summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/export.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2022-10-18 16:05:52 +0200
committerDavid Sterba <dsterba@suse.com>2022-10-24 15:28:58 +0200
commit2398091f9c2c8e0040f4f9928666787a3e8108a7 (patch)
tree42be1f3a15e852c7be9ef8e62357caa82431f0ef /fs/btrfs/export.h
parentbtrfs: send: fix send failure of a subcase of orphan inodes (diff)
downloadlinux-2398091f9c2c8e0040f4f9928666787a3e8108a7.tar.xz
linux-2398091f9c2c8e0040f4f9928666787a3e8108a7.zip
btrfs: fix type of parameter generation in btrfs_get_dentry
The type of parameter generation has been u32 since the beginning, however all callers pass a u64 generation, so unify the types to prevent potential loss. CC: stable@vger.kernel.org # 4.9+ 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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/export.h b/fs/btrfs/export.h
index f32f4113c976..5afb7ca42828 100644
--- a/fs/btrfs/export.h
+++ b/fs/btrfs/export.h
@@ -19,7 +19,7 @@ struct btrfs_fid {
} __attribute__ ((packed));
struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
- u64 root_objectid, u32 generation,
+ u64 root_objectid, u64 generation,
int check_generation);
struct dentry *btrfs_get_parent(struct dentry *child);