diff options
author | Andrew Morton <akpm@osdl.org> | 2006-03-25 03:06:53 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 08:22:50 -0800 |
commit | 8d8c85117fbcbaea7718870ad4b1ddd12940d9b0 (patch) | |
tree | 3e4c56b29a11ccad95a24679ecf41d341ffb844f /fs/jbd | |
parent | e3df18983ea090a2e00dd5c2c6167bb431a0e0a2 (diff) | |
download | kernel-common-8d8c85117fbcbaea7718870ad4b1ddd12940d9b0.tar.gz kernel-common-8d8c85117fbcbaea7718870ad4b1ddd12940d9b0.tar.bz2 kernel-common-8d8c85117fbcbaea7718870ad4b1ddd12940d9b0.zip |
[PATCH] jbd: convert kjournald to kthread API
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/jbd')
-rw-r--r-- | fs/jbd/journal.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c index 6bd4647dc5a1..7f96b5cb6781 100644 --- a/fs/jbd/journal.c +++ b/fs/jbd/journal.c @@ -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); @@ -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); } |