diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-11-25 20:53:51 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:15 -0400 |
commit | 61c8d7c8eb0e0169e04df64fab45c575aaad0739 (patch) | |
tree | ce46b86865189db93f925915d4a030254fd440d4 /fs/bcachefs/ec_types.h | |
parent | ed1646ca7412151dbdd81f4e4d05437cc99e9c8c (diff) | |
download | linux-stable-61c8d7c8eb0e0169e04df64fab45c575aaad0739.tar.gz linux-stable-61c8d7c8eb0e0169e04df64fab45c575aaad0739.tar.bz2 linux-stable-61c8d7c8eb0e0169e04df64fab45c575aaad0739.zip |
bcachefs: Persist stripe blocks_used
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/ec_types.h')
-rw-r--r-- | fs/bcachefs/ec_types.h | 7 |
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; }; |