bcachefs: skip journal more often in key cache reclaim
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
1a2a9f9f53
commit
0c0ba8e9c5
@ -655,7 +655,9 @@ static int btree_key_cache_flush_pos(struct btree_trans *trans,
|
|||||||
*/
|
*/
|
||||||
if (ck->journal.seq == journal_last_seq(j))
|
if (ck->journal.seq == journal_last_seq(j))
|
||||||
commit_flags |= BCH_WATERMARK_reclaim;
|
commit_flags |= BCH_WATERMARK_reclaim;
|
||||||
else
|
|
||||||
|
if (ck->journal.seq != journal_last_seq(j) ||
|
||||||
|
j->watermark == BCH_WATERMARK_stripe)
|
||||||
commit_flags |= BCH_TRANS_COMMIT_no_journal_res;
|
commit_flags |= BCH_TRANS_COMMIT_no_journal_res;
|
||||||
|
|
||||||
ret = bch2_btree_iter_traverse(&b_iter) ?:
|
ret = bch2_btree_iter_traverse(&b_iter) ?:
|
||||||
|
Loading…
Reference in New Issue
Block a user