diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-02-28 19:17:27 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:26 -0400 |
commit | 30ef633a0b46e06860f46bf7df0f5a313e6e1a19 (patch) | |
tree | 8b6ffa6870ea55dad13072acc60ac4b0ef08c99d /fs/bcachefs/journal_types.h | |
parent | f0a3a2ccabc5ae1e2c7d588a6a4f77d216b1d4cf (diff) | |
download | linux-stable-30ef633a0b46e06860f46bf7df0f5a313e6e1a19.tar.gz linux-stable-30ef633a0b46e06860f46bf7df0f5a313e6e1a19.tar.bz2 linux-stable-30ef633a0b46e06860f46bf7df0f5a313e6e1a19.zip |
bcachefs: Refactor journal code to not use unwritten_idx
It makes the code more readable if we work off of sequence numbers,
instead of direct indexes into the array of journal buffers.
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/journal_types.h b/fs/bcachefs/journal_types.h index 36843fd0c7da..3d9810e48e9d 100644 --- a/fs/bcachefs/journal_types.h +++ b/fs/bcachefs/journal_types.h @@ -25,7 +25,7 @@ struct journal_buf { struct closure_waitlist wait; u64 last_seq; /* copy of data->last_seq */ - unsigned long expires; + long expires; u64 flush_time; unsigned buf_size; /* size in bytes of @data */ |