From 35fca2f044d375b1590f499cfd34bef38ca0f8f1 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Wed, 23 Jan 2019 15:49:44 -0500 Subject: Update bcachefs sources to 99750eab4d bcachefs: Persist stripe blocks_used --- libbcachefs/ec_types.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libbcachefs/ec_types.h') diff --git a/libbcachefs/ec_types.h b/libbcachefs/ec_types.h index 44c5d382..b4d37705 100644 --- a/libbcachefs/ec_types.h +++ b/libbcachefs/ec_types.h @@ -19,9 +19,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; }; -- cgit v1.2.3