Skip to content

Commit 2398091

Browse files
committed
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: [email protected] # 4.9+ Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 9b8be45 commit 2398091

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fs/btrfs/export.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static int btrfs_encode_fh(struct inode *inode, u32 *fh, int *max_len,
5858
}
5959

6060
struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
61-
u64 root_objectid, u32 generation,
61+
u64 root_objectid, u64 generation,
6262
int check_generation)
6363
{
6464
struct btrfs_fs_info *fs_info = btrfs_sb(sb);

fs/btrfs/export.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ struct btrfs_fid {
1919
} __attribute__ ((packed));
2020

2121
struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
22-
u64 root_objectid, u32 generation,
22+
u64 root_objectid, u64 generation,
2323
int check_generation);
2424
struct dentry *btrfs_get_parent(struct dentry *child);
2525

0 commit comments

Comments
 (0)