[PATCH] jbd: convert kjournald to kthread API
authorAndrew Morton <akpm@osdl.org>
Sat, 25 Mar 2006 11:06:53 +0000 (03:06 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 25 Mar 2006 16:22:50 +0000 (08:22 -0800)
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/jbd/journal.c

index 6bd4647dc5a1f856a6165c6fe061a4dd047a519a..7f96b5cb67816109e38a51b79a6ee80364e48c5d 100644 (file)
 #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);
@@ -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
@@ -211,7 +211,7 @@ end_loop:
 
 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);
 }