Commit f29fad72 authored by Jan Kara's avatar Jan Kara Committed by Theodore Ts'o

jbd2: remove unused waitqueues

j_wait_logspace and j_wait_checkpoint are unused.  Remove them.
Reviewed-by: default avatarZheng Liu <wenqing.lz@taobao.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent fe1e8db5
...@@ -625,10 +625,6 @@ int __jbd2_journal_remove_checkpoint(struct journal_head *jh) ...@@ -625,10 +625,6 @@ int __jbd2_journal_remove_checkpoint(struct journal_head *jh)
__jbd2_journal_drop_transaction(journal, transaction); __jbd2_journal_drop_transaction(journal, transaction);
jbd2_journal_free_transaction(transaction); jbd2_journal_free_transaction(transaction);
/* Just in case anybody was waiting for more transactions to be
checkpointed... */
wake_up(&journal->j_wait_logspace);
ret = 1; ret = 1;
out: out:
return ret; return ret;
......
...@@ -1027,9 +1027,7 @@ static journal_t * journal_init_common (void) ...@@ -1027,9 +1027,7 @@ static journal_t * journal_init_common (void)
return NULL; return NULL;
init_waitqueue_head(&journal->j_wait_transaction_locked); init_waitqueue_head(&journal->j_wait_transaction_locked);
init_waitqueue_head(&journal->j_wait_logspace);
init_waitqueue_head(&journal->j_wait_done_commit); init_waitqueue_head(&journal->j_wait_done_commit);
init_waitqueue_head(&journal->j_wait_checkpoint);
init_waitqueue_head(&journal->j_wait_commit); init_waitqueue_head(&journal->j_wait_commit);
init_waitqueue_head(&journal->j_wait_updates); init_waitqueue_head(&journal->j_wait_updates);
mutex_init(&journal->j_barrier); mutex_init(&journal->j_barrier);
......
...@@ -687,9 +687,7 @@ jbd2_time_diff(unsigned long start, unsigned long end) ...@@ -687,9 +687,7 @@ jbd2_time_diff(unsigned long start, unsigned long end)
* waiting for checkpointing * waiting for checkpointing
* @j_wait_transaction_locked: Wait queue for waiting for a locked transaction * @j_wait_transaction_locked: Wait queue for waiting for a locked transaction
* to start committing, or for a barrier lock to be released * to start committing, or for a barrier lock to be released
* @j_wait_logspace: Wait queue for waiting for checkpointing to complete
* @j_wait_done_commit: Wait queue for waiting for commit to complete * @j_wait_done_commit: Wait queue for waiting for commit to complete
* @j_wait_checkpoint: Wait queue to trigger checkpointing
* @j_wait_commit: Wait queue to trigger commit * @j_wait_commit: Wait queue to trigger commit
* @j_wait_updates: Wait queue to wait for updates to complete * @j_wait_updates: Wait queue to wait for updates to complete
* @j_checkpoint_mutex: Mutex for locking against concurrent checkpoints * @j_checkpoint_mutex: Mutex for locking against concurrent checkpoints
...@@ -794,15 +792,9 @@ struct journal_s ...@@ -794,15 +792,9 @@ struct journal_s
*/ */
wait_queue_head_t j_wait_transaction_locked; wait_queue_head_t j_wait_transaction_locked;
/* Wait queue for waiting for checkpointing to complete */
wait_queue_head_t j_wait_logspace;
/* Wait queue for waiting for commit to complete */ /* Wait queue for waiting for commit to complete */
wait_queue_head_t j_wait_done_commit; wait_queue_head_t j_wait_done_commit;
/* Wait queue to trigger checkpointing */
wait_queue_head_t j_wait_checkpoint;
/* Wait queue to trigger commit */ /* Wait queue to trigger commit */
wait_queue_head_t j_wait_commit; wait_queue_head_t j_wait_commit;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment