diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-12-04 13:41:49 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2020-12-04 13:45:33 -0500 |
commit | db931a4571817d7d61be6bce306f1d42f7cd3398 (patch) | |
tree | c1ac421486b5f85b487e82ab2b4de47608110c33 /libbcachefs/journal_reclaim.h | |
parent | d7fdc2b61e57985a4611ec3a591c002427e093d9 (diff) |
Update bcachefs sources to e1d0fb8c5f bcachefs: Don't require flush/fua on every journal write
Diffstat (limited to 'libbcachefs/journal_reclaim.h')
-rw-r--r-- | libbcachefs/journal_reclaim.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libbcachefs/journal_reclaim.h b/libbcachefs/journal_reclaim.h index e253550..f02caa3 100644 --- a/libbcachefs/journal_reclaim.h +++ b/libbcachefs/journal_reclaim.h @@ -4,12 +4,6 @@ #define JOURNAL_PIN (32 * 1024) -enum journal_space_from { - journal_space_discarded, - journal_space_clean_ondisk, - journal_space_clean, -}; - static inline void journal_reclaim_kick(struct journal *j) { struct task_struct *p = READ_ONCE(j->reclaim_thread); @@ -39,6 +33,7 @@ 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_put(struct journal *, u64); void bch2_journal_pin_drop(struct journal *, struct journal_entry_pin *); @@ -73,7 +68,7 @@ static inline void bch2_journal_pin_update(struct journal *j, u64 seq, void bch2_journal_pin_flush(struct journal *, struct journal_entry_pin *); void bch2_journal_do_discards(struct journal *); -void bch2_journal_reclaim(struct journal *); +int bch2_journal_reclaim(struct journal *); void bch2_journal_reclaim_stop(struct journal *); int bch2_journal_reclaim_start(struct journal *); |