Skip to content

Commit 3bbed37

Browse files
author
Kent Overstreet
committed
bcachefs: fix bch_folio_sector padding
Signed-off-by: Kent Overstreet <[email protected]>
1 parent b3f8e71 commit 3bbed37

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

fs/bcachefs/fs-io-pagecache.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,10 @@ enum bch_folio_sector_state {
5151

5252
struct bch_folio_sector {
5353
/* Uncompressed, fully allocated replicas (or on disk reservation): */
54-
unsigned nr_replicas:4;
55-
54+
u8 nr_replicas:4,
5655
/* Owns PAGE_SECTORS * replicas_reserved sized in memory reservation: */
57-
unsigned replicas_reserved:4;
58-
59-
/* i_sectors: */
60-
enum bch_folio_sector_state state:8;
56+
replicas_reserved:4;
57+
u8 state;
6158
};
6259

6360
struct bch_folio {

0 commit comments

Comments
 (0)