diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-12-04 20:07:19 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:18 -0400 |
commit | 2430e72f42778a9448ff386686856b61b49f5074 (patch) | |
tree | e24bdbedd9ff95a5c6d165e5feceeae4094d3440 /fs/bcachefs/journal_io.c | |
parent | 92d2ec10926d2ba8c38ba0ecada69cfd7a4dd3c4 (diff) | |
download | linux-stable-2430e72f42778a9448ff386686856b61b49f5074.tar.gz linux-stable-2430e72f42778a9448ff386686856b61b49f5074.tar.bz2 linux-stable-2430e72f42778a9448ff386686856b61b49f5074.zip |
bcachefs: Convert journal sysfs params to regular options
This converts journal_write_delay, journal_flush_disabled, and
journal_reclaim_delay to normal filesystems options, and also adds them
to the superblock.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/journal_io.c')
-rw-r--r-- | fs/bcachefs/journal_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/journal_io.c b/fs/bcachefs/journal_io.c index 0cd5ad3118e9..680ddba1889d 100644 --- a/fs/bcachefs/journal_io.c +++ b/fs/bcachefs/journal_io.c @@ -1395,7 +1395,7 @@ void bch2_journal_write(struct closure *cl) spin_lock(&j->lock); if (c->sb.features & (1ULL << BCH_FEATURE_journal_no_flush) && !w->must_flush && - (jiffies - j->last_flush_write) < msecs_to_jiffies(j->write_delay_ms) && + (jiffies - j->last_flush_write) < msecs_to_jiffies(c->opts.journal_flush_delay) && test_bit(JOURNAL_MAY_SKIP_FLUSH, &j->flags)) { w->noflush = true; SET_JSET_NO_FLUSH(jset, true); |