Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20413
b: refs/heads/master
c: 745ae8b
h: refs/heads/master
i:
  20411: 7729a5f
v: v3
  • Loading branch information
Mark Fasheh committed Feb 16, 2006
1 parent 2dd6ad2 commit 4132999
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 558c70c59b75a5a53ba496fe3bccea80a9e3e6fb
refs/heads/master: 745ae8ba29e729ec922393fa4d9448c385673599
7 changes: 3 additions & 4 deletions trunk/fs/ocfs2/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1584,10 +1584,9 @@ static int ocfs2_commit_thread(void *arg)
while (!(kthread_should_stop() &&
atomic_read(&journal->j_num_trans) == 0)) {

wait_event_interruptible_timeout(osb->checkpoint_event,
atomic_read(&journal->j_num_trans)
|| kthread_should_stop(),
OCFS2_CHECKPOINT_INTERVAL);
wait_event_interruptible(osb->checkpoint_event,
atomic_read(&journal->j_num_trans)
|| kthread_should_stop());

status = ocfs2_commit_cache(osb);
if (status < 0)
Expand Down
2 changes: 0 additions & 2 deletions trunk/fs/ocfs2/journal.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
#include <linux/fs.h>
#include <linux/jbd.h>

#define OCFS2_CHECKPOINT_INTERVAL (8 * HZ)

enum ocfs2_journal_state {
OCFS2_JOURNAL_FREE = 0,
OCFS2_JOURNAL_LOADED,
Expand Down

0 comments on commit 4132999

Please sign in to comment.