summaryrefslogtreecommitdiff
path: root/libbcachefs/journal_reclaim.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-03-02 14:45:50 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2019-03-02 14:45:50 -0500
commit70bb5ab7a863ccff57ceb2a195d7cfa0fdf39218 (patch)
tree80b480a59263ca8559a1573875f5c83ae2d6bf31 /libbcachefs/journal_reclaim.h
parent35ab35989718ebce0419b911a7267a1f1563d61e (diff)
Update bcachefs sources to a5e71b8200 bcachefs: Allocator startup fixes/refactoring
Diffstat (limited to 'libbcachefs/journal_reclaim.h')
-rw-r--r--libbcachefs/journal_reclaim.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libbcachefs/journal_reclaim.h b/libbcachefs/journal_reclaim.h
index 287590cd..1d688d6f 100644
--- a/libbcachefs/journal_reclaim.h
+++ b/libbcachefs/journal_reclaim.h
@@ -3,6 +3,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;
@@ -16,6 +20,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 *,
@@ -27,7 +33,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);