Commit a1e7a97f authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: sysfs internal/trigger_journal_writes

another debugging knob - trigger the journal to do ready journal writes
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 26a170aa
......@@ -140,6 +140,7 @@ write_attribute(trigger_gc);
write_attribute(trigger_discards);
write_attribute(trigger_invalidates);
write_attribute(trigger_journal_flush);
write_attribute(trigger_journal_writes);
write_attribute(trigger_btree_cache_shrink);
write_attribute(trigger_btree_key_cache_shrink);
rw_attribute(gc_gens_pos);
......@@ -497,6 +498,9 @@ STORE(bch2_fs)
bch2_journal_meta(&c->journal);
}
if (attr == &sysfs_trigger_journal_writes)
bch2_journal_do_writes(&c->journal);
#ifdef CONFIG_BCACHEFS_TESTS
if (attr == &sysfs_perf_test) {
char *tmp = kstrdup(buf, GFP_KERNEL), *p = tmp;
......@@ -615,6 +619,7 @@ struct attribute *bch2_fs_internal_files[] = {
&sysfs_trigger_discards,
&sysfs_trigger_invalidates,
&sysfs_trigger_journal_flush,
&sysfs_trigger_journal_writes,
&sysfs_trigger_btree_cache_shrink,
&sysfs_trigger_btree_key_cache_shrink,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment