aboutsummaryrefslogtreecommitdiff
path: root/fs/bcachefs/journal.h
diff options
context:
space:
mode:
authorGravatar Kent Overstreet <kent.overstreet@linux.dev> 2023-12-10 15:23:27 -0500
committerGravatar Kent Overstreet <kent.overstreet@linux.dev> 2023-12-10 16:53:46 -0500
commita66ff26b0f31189e413a87065c25949c359e4bef (patch)
treeb5dfed7d38deb95921c76b4b9cca11e0eff0d25d /fs/bcachefs/journal.h
parentbcachefs: Fix uninitialized var in bch2_journal_replay() (diff)
downloadlinux-a66ff26b0f31189e413a87065c25949c359e4bef.tar.gz
linux-a66ff26b0f31189e413a87065c25949c359e4bef.tar.bz2
linux-a66ff26b0f31189e413a87065c25949c359e4bef.zip
bcachefs: Close journal entry if necessary when flushing all pins
Since outstanding journal buffers hold a journal pin, when flushing all pins we need to close the current journal entry if necessary so its pin can be released. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/journal.h')
-rw-r--r--fs/bcachefs/journal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/journal.h b/fs/bcachefs/journal.h
index 4c513fca5ef2..2f768e11aec9 100644
--- a/fs/bcachefs/journal.h
+++ b/fs/bcachefs/journal.h
@@ -266,6 +266,7 @@ static inline union journal_res_state journal_state_buf_put(struct journal *j, u
return s;
}
+bool bch2_journal_entry_close(struct journal *);
void bch2_journal_buf_put_final(struct journal *, u64, bool);
static inline void __bch2_journal_buf_put(struct journal *j, unsigned idx, u64 seq)