diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-02-28 22:22:52 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:08:17 +0300 |
commit | 9ace606e93e9c6dff919ca8f35d461e8462590b7 (patch) | |
tree | 1392da42af426494cff2bd8150a8177799eba548 /fs/bcachefs/journal_reclaim.h | |
parent | 03d5eaed8624fdc7918478bffd05d67e773ac7d0 (diff) | |
download | linux-9ace606e93e9c6dff919ca8f35d461e8462590b7.tar.xz |
bcachefs: Don't block on reclaim_lock from journal_res_get
When we're doing btree updates from journal flush, this becomes a
locking inversion
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/journal_reclaim.h')
-rw-r--r-- | fs/bcachefs/journal_reclaim.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/journal_reclaim.h b/fs/bcachefs/journal_reclaim.h index 71545ad3bd58..9bf982a17797 100644 --- a/fs/bcachefs/journal_reclaim.h +++ b/fs/bcachefs/journal_reclaim.h @@ -42,6 +42,7 @@ void bch2_journal_pin_add_if_older(struct journal *, void bch2_journal_pin_flush(struct journal *, struct journal_entry_pin *); void bch2_journal_do_discards(struct journal *); +void bch2_journal_reclaim(struct journal *); void bch2_journal_reclaim_work(struct work_struct *); void bch2_journal_flush_pins(struct journal *, u64); |