Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54703
b: refs/heads/master
c: 97f0678
h: refs/heads/master
i:
  54701: 33c63cb
  54699: 9ca6d4f
  54695: 717c610
  54687: 5961826
v: v3
  • Loading branch information
Pavel Emelianov authored and Linus Torvalds committed May 8, 2007
1 parent 36c2ab9 commit fb702a6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 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: ee6f958291e2a768fd727e7a67badfff0b67711a
refs/heads/master: 97f067846786d255888ccad14e2f38a1f63d8e9b
13 changes: 9 additions & 4 deletions trunk/fs/jbd/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,16 @@ static int kjournald(void *arg)
return 0;
}

static void journal_start_thread(journal_t *journal)
static int journal_start_thread(journal_t *journal)
{
kthread_run(kjournald, journal, "kjournald");
struct task_struct *t;

t = kthread_run(kjournald, journal, "kjournald");
if (IS_ERR(t))
return PTR_ERR(t);

wait_event(journal->j_wait_done_commit, journal->j_task != 0);
return 0;
}

static void journal_kill_thread(journal_t *journal)
Expand Down Expand Up @@ -839,8 +845,7 @@ static int journal_reset(journal_t *journal)

/* Add the dynamic fields and write it to disk. */
journal_update_superblock(journal, 1);
journal_start_thread(journal);
return 0;
return journal_start_thread(journal);
}

/**
Expand Down
13 changes: 9 additions & 4 deletions trunk/fs/jbd2/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,16 @@ static int kjournald2(void *arg)
return 0;
}

static void jbd2_journal_start_thread(journal_t *journal)
static int jbd2_journal_start_thread(journal_t *journal)
{
kthread_run(kjournald2, journal, "kjournald2");
struct task_struct *t;

t = kthread_run(kjournald2, journal, "kjournald2");
if (IS_ERR(t))
return PTR_ERR(t);

wait_event(journal->j_wait_done_commit, journal->j_task != 0);
return 0;
}

static void journal_kill_thread(journal_t *journal)
Expand Down Expand Up @@ -839,8 +845,7 @@ static int journal_reset(journal_t *journal)

/* Add the dynamic fields and write it to disk. */
jbd2_journal_update_superblock(journal, 1);
jbd2_journal_start_thread(journal);
return 0;
return jbd2_journal_start_thread(journal);
}

/**
Expand Down

0 comments on commit fb702a6

Please sign in to comment.