summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/btree_journal_iter.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-11-26 23:05:02 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-01 17:47:38 +0100
commit3c471b65889aa22d6ba4f8e3d2e5006bb70fdb58 (patch)
tree70d3742bc3bfee17cb313f6d56fd9682e27070f7 /fs/bcachefs/btree_journal_iter.c
parentbcachefs: Kill journal_seq/gc args to bch2_dev_usage_update_m() (diff)
downloadlinux-3c471b65889aa22d6ba4f8e3d2e5006bb70fdb58.tar.xz
linux-3c471b65889aa22d6ba4f8e3d2e5006bb70fdb58.zip
bcachefs: convert bch_fs_flags to x-macro
Now we can print out filesystem flags in sysfs, useful for debugging various "what's my filesystem doing" issues. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_journal_iter.c')
-rw-r--r--fs/bcachefs/btree_journal_iter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_journal_iter.c b/fs/bcachefs/btree_journal_iter.c
index 7a5e0a893df9..4c084ce493a4 100644
--- a/fs/bcachefs/btree_journal_iter.c
+++ b/fs/bcachefs/btree_journal_iter.c
@@ -177,7 +177,7 @@ int bch2_journal_key_insert_take(struct bch_fs *c, enum btree_id id,
struct journal_keys *keys = &c->journal_keys;
size_t idx = bch2_journal_key_search(keys, id, level, k->k.p);
- BUG_ON(test_bit(BCH_FS_RW, &c->flags));
+ BUG_ON(test_bit(BCH_FS_rw, &c->flags));
if (idx < keys->size &&
journal_key_cmp(&n, &keys->d[idx]) == 0) {