diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-02-21 13:33:21 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:16 -0400 |
commit | e5a66496a0751c1a7ea692ef5874c4cfad85969b (patch) | |
tree | e2f14af708131e2de01fe54359d9eead3bc74b0f /fs/bcachefs/journal_reclaim.h | |
parent | 2d3b581039614a20b064856b8fd899a733a4a1f8 (diff) | |
download | linux-e5a66496a0751c1a7ea692ef5874c4cfad85969b.tar.gz linux-e5a66496a0751c1a7ea692ef5874c4cfad85969b.tar.bz2 linux-e5a66496a0751c1a7ea692ef5874c4cfad85969b.zip |
bcachefs: Journal reclaim refactoring
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 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/bcachefs/journal_reclaim.h b/fs/bcachefs/journal_reclaim.h index e06ac0492960..a9afb229541b 100644 --- a/fs/bcachefs/journal_reclaim.h +++ b/fs/bcachefs/journal_reclaim.h @@ -4,6 +4,10 @@ #define JOURNAL_PIN (32 * 1024) +unsigned bch2_journal_dev_buckets_available(struct journal *, + struct journal_device *); +void bch2_journal_space_available(struct journal *); + static inline bool journal_pin_active(struct journal_entry_pin *pin) { return pin->seq != 0; @@ -17,6 +21,8 @@ journal_seq_pin(struct journal *j, u64 seq) return &j->pin.data[seq & j->pin.mask]; } +void bch2_journal_pin_put(struct journal *, u64); + void bch2_journal_pin_add(struct journal *, u64, struct journal_entry_pin *, journal_pin_flush_fn); void bch2_journal_pin_update(struct journal *, u64, struct journal_entry_pin *, @@ -28,7 +34,6 @@ void bch2_journal_pin_add_if_older(struct journal *, journal_pin_flush_fn); void bch2_journal_pin_flush(struct journal *, struct journal_entry_pin *); -void bch2_journal_reclaim_fast(struct journal *); void bch2_journal_reclaim_work(struct work_struct *); void bch2_journal_flush_pins(struct journal *, u64); |