Commit 8d8c8511 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] jbd: convert kjournald to kthread API

Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e3df1898
...@@ -33,9 +33,11 @@ ...@@ -33,9 +33,11 @@
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/suspend.h> #include <linux/suspend.h>
#include <linux/pagemap.h> #include <linux/pagemap.h>
#include <linux/kthread.h>
#include <linux/proc_fs.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/page.h> #include <asm/page.h>
#include <linux/proc_fs.h>
EXPORT_SYMBOL(journal_start); EXPORT_SYMBOL(journal_start);
EXPORT_SYMBOL(journal_restart); EXPORT_SYMBOL(journal_restart);
...@@ -114,8 +116,6 @@ static int kjournald(void *arg) ...@@ -114,8 +116,6 @@ static int kjournald(void *arg)
journal_t *journal = arg; journal_t *journal = arg;
transaction_t *transaction; transaction_t *transaction;
daemonize("kjournald");
/* /*
* Set up an interval timer which can be used to trigger a commit wakeup * Set up an interval timer which can be used to trigger a commit wakeup
* after the commit interval expires * after the commit interval expires
...@@ -211,7 +211,7 @@ static int kjournald(void *arg) ...@@ -211,7 +211,7 @@ static int kjournald(void *arg)
static void journal_start_thread(journal_t *journal) 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); wait_event(journal->j_wait_done_commit, journal->j_task != 0);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment