From: Andrew Morton Date: Sat, 25 Mar 2006 11:06:53 +0000 (-0800) Subject: [PATCH] jbd: convert kjournald to kthread API X-Git-Tag: v2.6.17-rc1~842 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d8c85117fbcbaea7718870ad4b1ddd12940d9b0;p=linux-2.6 [PATCH] jbd: convert kjournald to kthread API Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c index 6bd4647dc5..7f96b5cb67 100644 --- a/fs/jbd/journal.c +++ b/fs/jbd/journal.c @@ -33,9 +33,11 @@ #include #include #include +#include +#include + #include #include -#include 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); }