X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=kernel%2Ffork.c;h=7ce2ebe847964ecd0701c3c74c18994e3eebcf26;hb=9ea319b61613085f501a79cf8d405cb221d084f3;hp=8214ba7c8bb1ad78e110687ade3459bff8b40073;hpb=5995477ab7f3522c497c9c4a1c55373e9d655574;p=linux-2.6 diff --git a/kernel/fork.c b/kernel/fork.c index 8214ba7c8b..7ce2ebe847 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -414,6 +415,7 @@ static struct mm_struct * mm_init(struct mm_struct * mm, struct task_struct *p) if (likely(!mm_alloc_pgd(mm))) { mm->def_flags = 0; + mmu_notifier_mm_init(mm); return mm; } @@ -446,6 +448,7 @@ void __mmdrop(struct mm_struct *mm) BUG_ON(mm == &init_mm); mm_free_pgd(mm); destroy_context(mm); + mmu_notifier_mm_destroy(mm); free_mm(mm); } EXPORT_SYMBOL_GPL(__mmdrop);