]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: mark the len field in struct btrfs_ordered_sum as unsigned
authorChristoph Hellwig <hch@lst.de>
Wed, 24 May 2023 15:03:06 +0000 (17:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jan 2024 16:10:35 +0000 (17:10 +0100)
commit820a7802f25ac0cc998b329f87389610e954c476
tree21ad46ebfc0fd85c63841c985b3e872b8469469c
parentab220f4f5c704a6165694efbbaa657ec17e498f4
btrfs: mark the len field in struct btrfs_ordered_sum as unsigned

[ Upstream commit 6e4b2479ab38b3f949a85964da212295d32102f0 ]

len can't ever be negative, so mark it as an u32 instead of int.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Stable-dep-of: 9e65bfca24cf ("btrfs: fix qgroup_free_reserved_data int overflow")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/file-item.c
fs/btrfs/ordered-data.h