]> git.baikalelectronics.ru Git - kernel.git/commitdiff
btrfs: fix type of parameter generation in btrfs_get_dentry
authorDavid Sterba <dsterba@suse.com>
Tue, 18 Oct 2022 14:05:52 +0000 (16:05 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 24 Oct 2022 13:28:58 +0000 (15:28 +0200)
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>
fs/btrfs/export.c
fs/btrfs/export.h

index 1d4c2397d0d62c21889286d457885a04559e7736..fab7eb76e53b2a3e9b3f2508f4b7aa2ef9077c2f 100644 (file)
@@ -58,7 +58,7 @@ static int btrfs_encode_fh(struct inode *inode, u32 *fh, int *max_len,
 }
 
 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 btrfs_fs_info *fs_info = btrfs_sb(sb);
index f32f4113c976a95a072a65e558810ebc561a2a51..5afb7ca428289da24296b8e207ed67613fa691b0 100644 (file)
@@ -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);