writeback: per task dirty rate limit
[pandora-kernel.git] / kernel / fork.c
index 8e6b6f4..cc0815d 100644 (file)
@@ -1302,6 +1302,9 @@ static struct task_struct *copy_process(unsigned long clone_flags,
        p->pdeath_signal = 0;
        p->exit_state = 0;
 
+       p->nr_dirtied = 0;
+       p->nr_dirtied_pause = 128 >> (PAGE_SHIFT - 10);
+
        /*
         * Ok, make it visible to the rest of the system.
         * We dont wake it up yet.