diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-12-27 23:51:48 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:20 -0400 |
commit | 5b2e599f506891eec8163c1d90800168a0016d14 (patch) | |
tree | 6e116c5d52f34ee555c0c343b8bc5f83b44c790b /fs/bcachefs/journal.h | |
parent | bcachefs: Add a tracepoint for the btree cache shrinker (diff) | |
download | linux-5b2e599f506891eec8163c1d90800168a0016d14.tar.gz linux-5b2e599f506891eec8163c1d90800168a0016d14.tar.bz2 linux-5b2e599f506891eec8163c1d90800168a0016d14.zip |
bcachefs: bch2_journal_noflush_seq()
Add bch2_journal_noflush_seq(), for telling the journal that entries
before a given sequence number should not be flushes - to be used by an
upcoming allocator optimization.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/journal.h')
-rw-r--r-- | fs/bcachefs/journal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/journal.h b/fs/bcachefs/journal.h index 2cfb6c7f0d14..17f9037b404a 100644 --- a/fs/bcachefs/journal.h +++ b/fs/bcachefs/journal.h @@ -475,6 +475,7 @@ void bch2_journal_flush_async(struct journal *, struct closure *); int bch2_journal_flush_seq(struct journal *, u64); int bch2_journal_flush(struct journal *); +bool bch2_journal_noflush_seq(struct journal *, u64); int bch2_journal_meta(struct journal *); void bch2_journal_halt(struct journal *); |