From 2c36395430b0443751cf78903e3c3a37cae0f8d1 Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Fri, 13 Nov 2020 20:51:44 +0800 Subject: [PATCH] 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 --- fs/btrfs/scrub.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index 74acb7ca6eda..cb50e4cb97d5 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; -- 2.39.2