summaryrefslogtreecommitdiff
path: root/fs/bcachefs/journal_types.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-03-01 03:29:19 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:26 +0300
commit24a3d53b28398d2edd4dc717bede21eaf4a3b874 (patch)
tree9ba1e8bf729fb88bd3c4027f370422c8eb5b6f97 /fs/bcachefs/journal_types.h
parent30ef633a0b46e06860f46bf7df0f5a313e6e1a19 (diff)
downloadlinux-24a3d53b28398d2edd4dc717bede21eaf4a3b874.tar.xz
bcachefs: __journal_entry_close() never fails
Previous patch just moved responsibility for incrementing the journal sequence number and initializing the new journal entry from __journal_entry_close() to journal_entry_open(); this patch makes the analagous change for journal reservation state, incrementing the index into array of journal_bufs at open time. This means that __journal_entry_close() never fails to close an open journal entry, which is important for the next patch that will change our emergency shutdown behaviour. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/journal_types.h')
-rw-r--r--fs/bcachefs/journal_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/journal_types.h b/fs/bcachefs/journal_types.h
index 3d9810e48e9d..330c5d79e645 100644
--- a/fs/bcachefs/journal_types.h
+++ b/fs/bcachefs/journal_types.h
@@ -176,6 +176,7 @@ struct journal {
enum {
cur_entry_ok,
cur_entry_blocked,
+ cur_entry_max_in_flight,
cur_entry_journal_full,
cur_entry_journal_pin_full,
cur_entry_journal_stuck,