diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-06 17:20:39 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:27 -0400 |
commit | 718ce1eb8a84f47f66d0c89de43c6d0f0b14a20e (patch) | |
tree | 01e7614265a3298cf11bfd2203d94912febab80a /fs/bcachefs/journal_types.h | |
parent | f0cc5d2931378b7a2a7e797c726a2ab760d4a84d (diff) |
bcachefs: Skip periodic wakeup of journal reclaim when journal empty
Less system noise.
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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/bcachefs/journal_types.h b/fs/bcachefs/journal_types.h index 330c5d79e645..91f829adf862 100644 --- a/fs/bcachefs/journal_types.h +++ b/fs/bcachefs/journal_types.h @@ -243,6 +243,10 @@ struct journal { spinlock_t err_lock; struct mutex reclaim_lock; + /* + * Used for waiting until journal reclaim has freed up space in the + * journal: + */ wait_queue_head_t reclaim_wait; struct task_struct *reclaim_thread; bool reclaim_kicked; |