]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid Sterba <dsterba@suse.com>
Tue, 16 Nov 2021 15:51:11 +0000 (16:51 +0100)
commit30648158076804c3fe8d10958f682d2d5e5da34c
treebdf048eafb7be50c7d3908c3d07a5f3eb4f26073
parent0b02d2475f3b75c49637a3383e1901af5fb0a37a
btrfs: make 1-bit bit-fields of scrub_page unsigned int

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: 207f04feb33f ("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>
fs/btrfs/scrub.c