Skip to content

Commit

Permalink
[PATCH] jbd: convert kjournald to kthread API
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Mar 25, 2006
1 parent e3df189 commit 8d8c851
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fs/jbd/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@
#include <linux/mm.h>
#include <linux/suspend.h>
#include <linux/pagemap.h>
#include <linux/kthread.h>
#include <linux/proc_fs.h>

#include <asm/uaccess.h>
#include <asm/page.h>
#include <linux/proc_fs.h>

EXPORT_SYMBOL(journal_start);
EXPORT_SYMBOL(journal_restart);
Expand Down Expand Up @@ -114,8 +116,6 @@ static int kjournald(void *arg)
journal_t *journal = arg;
transaction_t *transaction;

daemonize("kjournald");

/*
* Set up an interval timer which can be used to trigger a commit wakeup
* after the commit interval expires
Expand Down Expand Up @@ -211,7 +211,7 @@ static int kjournald(void *arg)

static void journal_start_thread(journal_t *journal)
{
kernel_thread(kjournald, journal, CLONE_VM|CLONE_FS|CLONE_FILES);
kthread_run(kjournald, journal, "kjournald");
wait_event(journal->j_wait_done_commit, journal->j_task != 0);
}

Expand Down

0 comments on commit 8d8c851

Please sign in to comment.