summaryrefslogtreecommitdiff
path: root/fs/bcachefs/journal.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-02-14 18:38:52 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:16 -0400
commit768ac63924775d9fe2e76fbb254704d5ee3bcb85 (patch)
treeef815d5e731c2a1062ebb27bc1da414098c245a4 /fs/bcachefs/journal.h
parent8fe826f90aad4ea314d0acdf7425a9bf2324e17f (diff)
downloadlwn-768ac63924775d9fe2e76fbb254704d5ee3bcb85.tar.gz
lwn-768ac63924775d9fe2e76fbb254704d5ee3bcb85.zip
bcachefs: Add a mechanism for blocking the journal
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/journal.h')
-rw-r--r--fs/bcachefs/journal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/journal.h b/fs/bcachefs/journal.h
index 6ef34bdae628..5290cdeab585 100644
--- a/fs/bcachefs/journal.h
+++ b/fs/bcachefs/journal.h
@@ -370,6 +370,9 @@ static inline void bch2_journal_set_replay_done(struct journal *j)
set_bit(JOURNAL_REPLAY_DONE, &j->flags);
}
+void bch2_journal_unblock(struct journal *);
+void bch2_journal_block(struct journal *);
+
ssize_t bch2_journal_print_debug(struct journal *, char *);
ssize_t bch2_journal_print_pins(struct journal *, char *);