summaryrefslogtreecommitdiff
path: root/fs/bcachefs/journal_seq_blacklist.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-12-29 04:17:06 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:08:33 +0300
commit1c3ff72c0fa94651a226d3351d9df89d5eafd2d7 (patch)
treeb1aad6c4a0debf71af1479be7fc2a0a574b42db1 /fs/bcachefs/journal_seq_blacklist.c
parent27b3e52388e1e6b2babb71ec17efa029139e1511 (diff)
downloadlinux-1c3ff72c0fa94651a226d3351d9df89d5eafd2d7.tar.xz
bcachefs: Convert some enums to x-macros
Helps for preventing things from getting out of sync. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/journal_seq_blacklist.c')
-rw-r--r--fs/bcachefs/journal_seq_blacklist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/journal_seq_blacklist.c b/fs/bcachefs/journal_seq_blacklist.c
index 787d9f7638d0..a21de0088753 100644
--- a/fs/bcachefs/journal_seq_blacklist.c
+++ b/fs/bcachefs/journal_seq_blacklist.c
@@ -121,7 +121,7 @@ int bch2_journal_seq_blacklist_add(struct bch_fs *c, u64 start, u64 end)
bl->start[nr].end = cpu_to_le64(end);
out_write_sb:
c->disk_sb.sb->features[0] |=
- 1ULL << BCH_FEATURE_JOURNAL_SEQ_BLACKLIST_V3;
+ 1ULL << BCH_FEATURE_journal_seq_blacklist_v3;
ret = bch2_write_super(c);
out:
@@ -309,7 +309,7 @@ void bch2_blacklist_entries_gc(struct work_struct *work)
if (!new_nr)
c->disk_sb.sb->features[0] &=
- ~(1ULL << BCH_FEATURE_JOURNAL_SEQ_BLACKLIST_V3);
+ ~(1ULL << BCH_FEATURE_journal_seq_blacklist_v3);
bch2_write_super(c);
}