From: Qu Wenruo Date: Fri, 13 Nov 2020 12:51:44 +0000 (+0800) Subject: btrfs: scrub: remove the anonymous structure from scrub_page X-Git-Tag: v5.11-rc1~144^2~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2c36395430b0443751cf78903e3c3a37cae0f8d1;p=thirdparty%2Fkernel%2Flinux.git btrfs: scrub: remove the anonymous structure from scrub_page That anonymous structure serve no special purpose, just replace it with regular members. Signed-off-by: Qu Wenruo Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index 74acb7ca6eda1..cb50e4cb97d5b 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c @@ -71,11 +71,9 @@ struct scrub_page { u64 physical; u64 physical_for_dev_replace; atomic_t refs; - struct { - unsigned int mirror_num:8; - unsigned int have_csum:1; - unsigned int io_error:1; - }; + u8 mirror_num; + int have_csum:1; + int io_error:1; u8 csum[BTRFS_CSUM_SIZE]; struct scrub_recover *recover;