]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - mm/rmap.c
Remove SLAB_CTOR_CONSTRUCTOR
[mirror_ubuntu-artful-kernel.git] / mm / rmap.c
index 304f51985c78504cb67056922bfd2bb7c34a6e21..1c1af92732d508c6e8e6039a7898e402c99c2fdb 100644 (file)
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -162,12 +162,10 @@ void anon_vma_unlink(struct vm_area_struct *vma)
 static void anon_vma_ctor(void *data, struct kmem_cache *cachep,
                          unsigned long flags)
 {
-       if (flags & SLAB_CTOR_CONSTRUCTOR) {
-               struct anon_vma *anon_vma = data;
+       struct anon_vma *anon_vma = data;
 
-               spin_lock_init(&anon_vma->lock);
-               INIT_LIST_HEAD(&anon_vma->head);
-       }
+       spin_lock_init(&anon_vma->lock);
+       INIT_LIST_HEAD(&anon_vma->head);
 }
 
 void __init anon_vma_init(void)