summaryrefslogtreecommitdiff
path: root/fs/bcachefs/ec_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bcachefs/ec_types.h')
-rw-r--r--fs/bcachefs/ec_types.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/bcachefs/ec_types.h b/fs/bcachefs/ec_types.h
index e416dac7ee19..5c3f77c8aac7 100644
--- a/fs/bcachefs/ec_types.h
+++ b/fs/bcachefs/ec_types.h
@@ -20,9 +20,10 @@ struct stripe {
u8 nr_blocks;
u8 nr_redundant;
- u8 alive;
- atomic_t blocks_nonempty;
- atomic_t block_sectors[EC_STRIPE_MAX];
+ unsigned alive:1;
+ unsigned dirty:1;
+ u8 blocks_nonempty;
+ u16 block_sectors[EC_STRIPE_MAX];
struct bch_replicas_padded r;
};