jbd2: remove unused waitqueues
authorJan Kara <jack@suse.cz>
Tue, 4 Jun 2013 16:24:11 +0000 (12:24 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 4 Jun 2013 16:24:11 +0000 (12:24 -0400)
j_wait_logspace and j_wait_checkpoint are unused.  Remove them.

Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/checkpoint.c
fs/jbd2/journal.c
include/linux/jbd2.h

index a572383bcf9985fd3b20b4f1dbc72e066e6a2d4e..75a15f371b00c6e19a5e953e25b68be0ea391f03 100644 (file)
@@ -625,10 +625,6 @@ int __jbd2_journal_remove_checkpoint(struct journal_head *jh)
 
        __jbd2_journal_drop_transaction(journal, 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;
 out:
        return ret;
index 8e5486d62e89e07085755fd25ced5ed0ca150117..f43f97ba002e1550cac0cd377e0824524a1a88cf 100644 (file)
@@ -1027,9 +1027,7 @@ static journal_t * journal_init_common (void)
                return NULL;
 
        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_checkpoint);
        init_waitqueue_head(&journal->j_wait_commit);
        init_waitqueue_head(&journal->j_wait_updates);
        mutex_init(&journal->j_barrier);
index 7a1f6cd864c8c4876c41535144bad214005291c4..8028dd581cb02a8b5953a5e0f60364326cb010d2 100644 (file)
@@ -687,9 +687,7 @@ jbd2_time_diff(unsigned long start, unsigned long end)
  *  waiting for checkpointing
  * @j_wait_transaction_locked: Wait queue for waiting for a locked transaction
  *  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_checkpoint:  Wait queue to trigger checkpointing
  * @j_wait_commit: Wait queue to trigger commit
  * @j_wait_updates: Wait queue to wait for updates to complete
  * @j_checkpoint_mutex: Mutex for locking against concurrent checkpoints
@@ -794,15 +792,9 @@ struct journal_s
         */
        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_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_head_t       j_wait_commit;