diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-11-19 20:55:33 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:48 -0400 |
commit | b7a9bbfc1b85730ddf9905289b1a148ea1aa5ade (patch) | |
tree | affcc11b96ebd3f614a65bfa8ff9d8564245c2cc /fs/bcachefs/journal_types.h | |
parent | d5425a3b220a8b94ae2dd3c74af001a6b1216651 (diff) | |
download | linux-stable-b7a9bbfc1b85730ddf9905289b1a148ea1aa5ade.tar.gz linux-stable-b7a9bbfc1b85730ddf9905289b1a148ea1aa5ade.tar.bz2 linux-stable-b7a9bbfc1b85730ddf9905289b1a148ea1aa5ade.zip |
bcachefs: Move journal reclaim to a kthread
This is to make tracing easier.
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 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/bcachefs/journal_types.h b/fs/bcachefs/journal_types.h index 5f20653b8eb5..6312a7f06d87 100644 --- a/fs/bcachefs/journal_types.h +++ b/fs/bcachefs/journal_types.h @@ -216,8 +216,12 @@ struct journal { struct write_point wp; spinlock_t err_lock; - struct delayed_work reclaim_work; struct mutex reclaim_lock; + struct task_struct *reclaim_thread; + bool reclaim_kicked; + u64 nr_direct_reclaim; + u64 nr_background_reclaim; + unsigned long last_flushed; struct journal_entry_pin *flush_in_progress; wait_queue_head_t pin_flush_wait; |