diff options
| -rw-r--r-- | fs/ocfs2/journal.c | 7 | ||||
| -rw-r--r-- | fs/ocfs2/journal.h | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/fs/ocfs2/journal.c b/fs/ocfs2/journal.c index fa0bcac5ceae..d329c9df90ae 100644 --- a/fs/ocfs2/journal.c +++ b/fs/ocfs2/journal.c | |||
| @@ -1584,10 +1584,9 @@ static int ocfs2_commit_thread(void *arg) | |||
| 1584 | while (!(kthread_should_stop() && | 1584 | while (!(kthread_should_stop() && |
| 1585 | atomic_read(&journal->j_num_trans) == 0)) { | 1585 | atomic_read(&journal->j_num_trans) == 0)) { |
| 1586 | 1586 | ||
| 1587 | wait_event_interruptible_timeout(osb->checkpoint_event, | 1587 | wait_event_interruptible(osb->checkpoint_event, |
| 1588 | atomic_read(&journal->j_num_trans) | 1588 | atomic_read(&journal->j_num_trans) |
| 1589 | || kthread_should_stop(), | 1589 | || kthread_should_stop()); |
| 1590 | OCFS2_CHECKPOINT_INTERVAL); | ||
| 1591 | 1590 | ||
| 1592 | status = ocfs2_commit_cache(osb); | 1591 | status = ocfs2_commit_cache(osb); |
| 1593 | if (status < 0) | 1592 | if (status < 0) |
diff --git a/fs/ocfs2/journal.h b/fs/ocfs2/journal.h index 7d0a816184fa..2f3a6acdac45 100644 --- a/fs/ocfs2/journal.h +++ b/fs/ocfs2/journal.h | |||
| @@ -29,8 +29,6 @@ | |||
| 29 | #include <linux/fs.h> | 29 | #include <linux/fs.h> |
| 30 | #include <linux/jbd.h> | 30 | #include <linux/jbd.h> |
| 31 | 31 | ||
| 32 | #define OCFS2_CHECKPOINT_INTERVAL (8 * HZ) | ||
| 33 | |||
| 34 | enum ocfs2_journal_state { | 32 | enum ocfs2_journal_state { |
| 35 | OCFS2_JOURNAL_FREE = 0, | 33 | OCFS2_JOURNAL_FREE = 0, |
| 36 | OCFS2_JOURNAL_LOADED, | 34 | OCFS2_JOURNAL_LOADED, |
