]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
btrfs: scrub: remove the anonymous structure from scrub_page
authorQu Wenruo <wqu@suse.com>
Fri, 13 Nov 2020 12:51:44 +0000 (20:51 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 8 Dec 2020 14:54:14 +0000 (15:54 +0100)
That anonymous structure serve no special purpose, just replace it with
regular members.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c

index 74acb7ca6eda12e7d6dae5b3c76504d0911d954f..cb50e4cb97d5b8cfd4d783d89217fb800fd99f05 100644 (file)
@@ -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;