diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-04-28 22:12:07 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:02 -0400 |
commit | 2ce867df3161886cfc6baf54aa9ef53f2281cdee (patch) | |
tree | f697ed2cb9bc3791e11629154f8582f0f7c8c016 /fs/bcachefs/journal_types.h | |
parent | 050197b1c1df1cfee84523bf2183c8674e06d10f (diff) | |
download | linux-stable-2ce867df3161886cfc6baf54aa9ef53f2281cdee.tar.gz linux-stable-2ce867df3161886cfc6baf54aa9ef53f2281cdee.tar.bz2 linux-stable-2ce867df3161886cfc6baf54aa9ef53f2281cdee.zip |
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.h | 1 |
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; |