btrfs: make 1-bit bit-fields of scrub_page unsigned int
authorColin Ian King <colin.i.king@googlemail.com>
Wed, 10 Nov 2021 19:20:08 +0000 (19:20 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 08:48:37 +0000 (09:48 +0100)
commit9fe0ba31271cec187b09cf868d6cf09551726b86
tree6ecb9ce8844af3c52012f52eb3c39bbd63ab900a
parent67fb5eac4063e884f029daa5bd94cbcf7bf3cebe
btrfs: make 1-bit bit-fields of scrub_page unsigned int

[ Upstream commit d08e38b62327961295be1c63b562cd46ec97cd07 ]

The bitfields have_csum and io_error are currently signed which is not
recommended as the representation is an implementation defined
behaviour. Fix this by making the bit-fields unsigned ints.

Fixes: 2c36395430b0 ("btrfs: scrub: remove the anonymous structure from scrub_page")
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/scrub.c