diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-03-04 00:50:40 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:08:17 +0300 |
commit | 03d5eaed8624fdc7918478bffd05d67e773ac7d0 (patch) | |
tree | e068c3ddb51b84a40bf0055472eef920e24e2dda /fs/bcachefs/journal_reclaim.h | |
parent | 2384db8f32a2df9e71cd3003d213b48f64cbde1e (diff) | |
download | linux-03d5eaed8624fdc7918478bffd05d67e773ac7d0.tar.xz |
bcachefs: bch2_journal_space_available improvements
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 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/bcachefs/journal_reclaim.h b/fs/bcachefs/journal_reclaim.h index 183419ea3e25..71545ad3bd58 100644 --- a/fs/bcachefs/journal_reclaim.h +++ b/fs/bcachefs/journal_reclaim.h @@ -4,8 +4,15 @@ #define JOURNAL_PIN (32 * 1024) +enum journal_space_from { + journal_space_discarded, + journal_space_clean_ondisk, + journal_space_clean, +}; + unsigned bch2_journal_dev_buckets_available(struct journal *, - struct journal_device *); + struct journal_device *, + enum journal_space_from); void bch2_journal_space_available(struct journal *); static inline bool journal_pin_active(struct journal_entry_pin *pin) |