diff options
author | Jan Kara <jack@suse.cz> | 2013-06-04 12:24:11 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-06-04 12:24:11 -0400 |
commit | f29fad72105287e6899d9128a9d494514f220e77 (patch) | |
tree | 88f44b9e77ed9138832df02b6bb4c783e87ca246 | |
parent | fe1e8db598b259eafdffbe3dd5fe849cd2ad97d5 (diff) |
jbd2: remove unused waitqueues
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>
-rw-r--r-- | fs/jbd2/checkpoint.c | 4 | ||||
-rw-r--r-- | fs/jbd2/journal.c | 2 | ||||
-rw-r--r-- | include/linux/jbd2.h | 8 |
3 files changed, 0 insertions, 14 deletions
diff --git a/fs/jbd2/checkpoint.c b/fs/jbd2/checkpoint.c index a572383bcf99..75a15f371b00 100644 --- a/fs/jbd2/checkpoint.c +++ b/fs/jbd2/checkpoint.c | |||
@@ -625,10 +625,6 @@ int __jbd2_journal_remove_checkpoint(struct journal_head *jh) | |||
625 | 625 | ||
626 | __jbd2_journal_drop_transaction(journal, transaction); | 626 | __jbd2_journal_drop_transaction(journal, transaction); |
627 | jbd2_journal_free_transaction(transaction); | 627 | jbd2_journal_free_transaction(transaction); |
628 | |||
629 | /* Just in case anybody was waiting for more transactions to be | ||
630 | checkpointed... */ | ||
631 | wake_up(&journal->j_wait_logspace); | ||
632 | ret = 1; | 628 | ret = 1; |
633 | out: | 629 | out: |
634 | return ret; | 630 | return ret; |
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c index 8e5486d62e89..f43f97ba002e 100644 --- a/fs/jbd2/journal.c +++ b/fs/jbd2/journal.c | |||
@@ -1027,9 +1027,7 @@ static journal_t * journal_init_common (void) | |||
1027 | return NULL; | 1027 | return NULL; |
1028 | 1028 | ||
1029 | init_waitqueue_head(&journal->j_wait_transaction_locked); | 1029 | init_waitqueue_head(&journal->j_wait_transaction_locked); |
1030 | init_waitqueue_head(&journal->j_wait_logspace); | ||
1031 | init_waitqueue_head(&journal->j_wait_done_commit); | 1030 | init_waitqueue_head(&journal->j_wait_done_commit); |
1032 | init_waitqueue_head(&journal->j_wait_checkpoint); | ||
1033 | init_waitqueue_head(&journal->j_wait_commit); | 1031 | init_waitqueue_head(&journal->j_wait_commit); |
1034 | init_waitqueue_head(&journal->j_wait_updates); | 1032 | init_waitqueue_head(&journal->j_wait_updates); |
1035 | mutex_init(&journal->j_barrier); | 1033 | mutex_init(&journal->j_barrier); |
diff --git a/include/linux/jbd2.h b/include/linux/jbd2.h index 7a1f6cd864c8..8028dd581cb0 100644 --- a/include/linux/jbd2.h +++ b/include/linux/jbd2.h | |||
@@ -687,9 +687,7 @@ jbd2_time_diff(unsigned long start, unsigned long end) | |||
687 | * waiting for checkpointing | 687 | * waiting for checkpointing |
688 | * @j_wait_transaction_locked: Wait queue for waiting for a locked transaction | 688 | * @j_wait_transaction_locked: Wait queue for waiting for a locked transaction |
689 | * to start committing, or for a barrier lock to be released | 689 | * to start committing, or for a barrier lock to be released |
690 | * @j_wait_logspace: Wait queue for waiting for checkpointing to complete | ||
691 | * @j_wait_done_commit: Wait queue for waiting for commit to complete | 690 | * @j_wait_done_commit: Wait queue for waiting for commit to complete |
692 | * @j_wait_checkpoint: Wait queue to trigger checkpointing | ||
693 | * @j_wait_commit: Wait queue to trigger commit | 691 | * @j_wait_commit: Wait queue to trigger commit |
694 | * @j_wait_updates: Wait queue to wait for updates to complete | 692 | * @j_wait_updates: Wait queue to wait for updates to complete |
695 | * @j_checkpoint_mutex: Mutex for locking against concurrent checkpoints | 693 | * @j_checkpoint_mutex: Mutex for locking against concurrent checkpoints |
@@ -794,15 +792,9 @@ struct journal_s | |||
794 | */ | 792 | */ |
795 | wait_queue_head_t j_wait_transaction_locked; | 793 | wait_queue_head_t j_wait_transaction_locked; |
796 | 794 | ||
797 | /* Wait queue for waiting for checkpointing to complete */ | ||
798 | wait_queue_head_t j_wait_logspace; | ||
799 | |||
800 | /* Wait queue for waiting for commit to complete */ | 795 | /* Wait queue for waiting for commit to complete */ |
801 | wait_queue_head_t j_wait_done_commit; | 796 | wait_queue_head_t j_wait_done_commit; |
802 | 797 | ||
803 | /* Wait queue to trigger checkpointing */ | ||
804 | wait_queue_head_t j_wait_checkpoint; | ||
805 | |||
806 | /* Wait queue to trigger commit */ | 798 | /* Wait queue to trigger commit */ |
807 | wait_queue_head_t j_wait_commit; | 799 | wait_queue_head_t j_wait_commit; |
808 | 800 | ||