summaryrefslogtreecommitdiff
path: root/fs/bcachefs/journal_types.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-04-29 05:12:07 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:02 +0300
commit2ce867df3161886cfc6baf54aa9ef53f2281cdee (patch)
treef697ed2cb9bc3791e11629154f8582f0f7c8c016 /fs/bcachefs/journal_types.h
parent050197b1c1df1cfee84523bf2183c8674e06d10f (diff)
downloadlinux-2ce867df3161886cfc6baf54aa9ef53f2281cdee.tar.xz
bcachefs: Make sure to initialize j->last_flushed
If the journal reclaim thread makes it to the timeout without ever initializing j->last_flushed, we could end up sleeping for a very long time. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
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 f597eb78e66e..6e2a2d6b8346 100644
--- a/fs/bcachefs/journal_types.h
+++ b/fs/bcachefs/journal_types.h
@@ -248,6 +248,7 @@ struct journal {
wait_queue_head_t reclaim_wait;
struct task_struct *reclaim_thread;
bool reclaim_kicked;
+ unsigned long next_reclaim;
u64 nr_direct_reclaim;
u64 nr_background_reclaim;