diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-02-28 19:29:19 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:26 -0400 |
commit | 24a3d53b28398d2edd4dc717bede21eaf4a3b874 (patch) | |
tree | 9ba1e8bf729fb88bd3c4027f370422c8eb5b6f97 /fs/bcachefs/journal_types.h | |
parent | 30ef633a0b46e06860f46bf7df0f5a313e6e1a19 (diff) | |
download | linux-stable-24a3d53b28398d2edd4dc717bede21eaf4a3b874.tar.gz linux-stable-24a3d53b28398d2edd4dc717bede21eaf4a3b874.tar.bz2 linux-stable-24a3d53b28398d2edd4dc717bede21eaf4a3b874.zip |
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.h | 1 |
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, |