summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-03-26 04:42:12 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-03-26 05:27:59 -0300
commita156245300d5362a3b4c4afdace9e2b90169fe43 (patch)
tree392741d5ee3e05bc089c7af2db884b99899217d7 /kernel
parent03dd4cb26d967f9588437b0fc9cc0e8353322bb7 (diff)
Remove UKSM support since the latest patch is very unstable and obsolete for the 4.5-gnu kernel version
Diffstat (limited to 'kernel')
-rw-r--r--kernel/fork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index f91740137..2e391c754 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -444,7 +444,7 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
goto fail_nomem;
charge = len;
}
- tmp = kmem_cache_zalloc(vm_area_cachep, GFP_KERNEL);
+ tmp = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL);
if (!tmp)
goto fail_nomem;
*tmp = *mpnt;
@@ -497,7 +497,7 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
__vma_link_rb(mm, tmp, rb_link, rb_parent);
rb_link = &tmp->vm_rb.rb_right;
rb_parent = &tmp->vm_rb;
- uksm_vma_add_new(tmp);
+
mm->map_count++;
retval = copy_page_range(mm, oldmm, mpnt);