Commit 8cc052db authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Don't kick journal reclaim unless low on space

We shouldn't kick journal reclaim unnecessarily, it's got its own timer
for that.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
parent fd4cecd2
...@@ -1442,7 +1442,8 @@ static void journal_write_done(struct closure *cl) ...@@ -1442,7 +1442,8 @@ static void journal_write_done(struct closure *cl)
* Must come before signaling write completion, for * Must come before signaling write completion, for
* bch2_fs_journal_stop(): * bch2_fs_journal_stop():
*/ */
journal_reclaim_kick(&c->journal); if (j->watermark)
journal_reclaim_kick(&c->journal);
/* also must come before signalling write completion: */ /* also must come before signalling write completion: */
closure_debug_destroy(cl); closure_debug_destroy(cl);
......
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