summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-04-14 02:15:20 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2018-04-14 02:15:20 -0400
commite93d87ea703656a881f6dc818e6d88b080eea7f2 (patch)
treea301832e23cf17f553eac0277ee8d7f2cdebe7b3
parent64aa1f4a64b44d8aee89f21bfd7e94d48980637d (diff)
bcachefs: Fix background compression superblock opt
It was overlapping with promote_target
-rw-r--r--fs/bcachefs/bcachefs_format.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/bcachefs/bcachefs_format.h b/fs/bcachefs/bcachefs_format.h
index eed6fb852b90..730a46a6ed6f 100644
--- a/fs/bcachefs/bcachefs_format.h
+++ b/fs/bcachefs/bcachefs_format.h
@@ -1088,13 +1088,14 @@ LE64_BITMASK(BCH_SB_ENCODED_EXTENT_MAX_BITS,
LE64_BITMASK(BCH_SB_META_REPLICAS_REQ, struct bch_sb, flags[1], 20, 24);
LE64_BITMASK(BCH_SB_DATA_REPLICAS_REQ, struct bch_sb, flags[1], 24, 28);
-LE64_BITMASK(BCH_SB_BACKGROUND_COMPRESSION_TYPE,
- struct bch_sb, flags[1], 28, 32);
LE64_BITMASK(BCH_SB_PROMOTE_TARGET, struct bch_sb, flags[1], 28, 40);
LE64_BITMASK(BCH_SB_FOREGROUND_TARGET, struct bch_sb, flags[1], 40, 52);
LE64_BITMASK(BCH_SB_BACKGROUND_TARGET, struct bch_sb, flags[1], 52, 64);
+LE64_BITMASK(BCH_SB_BACKGROUND_COMPRESSION_TYPE,
+ struct bch_sb, flags[2], 0, 4);
+
/* Features: */
enum bch_sb_features {
BCH_FEATURE_LZ4 = 0,