summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/journal_types.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-02-28 19:17:27 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:26 -0400
commit30ef633a0b46e06860f46bf7df0f5a313e6e1a19 (patch)
tree8b6ffa6870ea55dad13072acc60ac4b0ef08c99d /fs/bcachefs/journal_types.h
parentf0a3a2ccabc5ae1e2c7d588a6a4f77d216b1d4cf (diff)
downloadlinux-30ef633a0b46e06860f46bf7df0f5a313e6e1a19.tar.gz
linux-30ef633a0b46e06860f46bf7df0f5a313e6e1a19.tar.bz2
linux-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.h2
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 */