X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=mm%2Frmap.c;h=1c1af92732d508c6e8e6039a7898e402c99c2fdb;hb=a35afb830f8d71ec211531aeb9a621b09a2efb39;hp=304f51985c78504cb67056922bfd2bb7c34a6e21;hpb=18062a91d2ddc40e19fc674afeb7cad58cfa23ab;p=deliverable%2Flinux.git diff --git a/mm/rmap.c b/mm/rmap.c index 304f51985c78..1c1af92732d5 100644 --- 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)