From: Greg Kroah-Hartman Date: Mon, 7 Nov 2022 12:29:22 +0000 (+0100) Subject: 4.19-stable patches X-Git-Tag: v4.9.333~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b2d3cf2820158d919c06e3bc70f55b39808eb0e;p=thirdparty%2Fkernel%2Fstable-queue.git 4.19-stable patches added patches: btrfs-fix-type-of-parameter-generation-in-btrfs_get_dentry.patch --- diff --git a/queue-4.19/btrfs-fix-type-of-parameter-generation-in-btrfs_get_dentry.patch b/queue-4.19/btrfs-fix-type-of-parameter-generation-in-btrfs_get_dentry.patch new file mode 100644 index 00000000000..2643cfb8c35 --- /dev/null +++ b/queue-4.19/btrfs-fix-type-of-parameter-generation-in-btrfs_get_dentry.patch @@ -0,0 +1,44 @@ +From 2398091f9c2c8e0040f4f9928666787a3e8108a7 Mon Sep 17 00:00:00 2001 +From: David Sterba +Date: Tue, 18 Oct 2022 16:05:52 +0200 +Subject: btrfs: fix type of parameter generation in btrfs_get_dentry + +From: David Sterba + +commit 2398091f9c2c8e0040f4f9928666787a3e8108a7 upstream. + +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 +Signed-off-by: David Sterba +Signed-off-by: Greg Kroah-Hartman +--- + fs/btrfs/export.c | 2 +- + fs/btrfs/export.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +--- a/fs/btrfs/export.c ++++ b/fs/btrfs/export.c +@@ -58,7 +58,7 @@ static int btrfs_encode_fh(struct inode + } + + 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); +--- 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); + diff --git a/queue-4.19/series b/queue-4.19/series index 1a60079f00b..dbdb02b332d 100644 --- a/queue-4.19/series +++ b/queue-4.19/series @@ -29,3 +29,4 @@ hid-saitek-add-madcatz-variant-of-mmo7-mouse-device-.patch i2c-xiic-add-platform-module-alias.patch bluetooth-l2cap-fix-attempting-to-access-uninitialized-memory.patch block-bfq-protect-bfqd-queued-by-bfqd-lock.patch +btrfs-fix-type-of-parameter-generation-in-btrfs_get_dentry.patch