commit | a35afb830f8d71ec211531aeb9a621b09a2efb39 | [log] [tgz] |
---|---|---|
author | Christoph Lameter <[email protected]> | Wed May 16 22:10:57 2007 -0700 |
committer | Linus Torvalds <[email protected]> | Thu May 17 05:23:04 2007 -0700 |
tree | 198280081e1f8b2f6c450742a5075cc7904a3d58 | |
parent | 5577bd8a85c8b7643a241789b14fafa9c8a6c7db [diff] [blame] |
Remove SLAB_CTOR_CONSTRUCTOR SLAB_CTOR_CONSTRUCTOR is always specified. No point in checking it. Signed-off-by: Christoph Lameter <[email protected]> Cc: David Howells <[email protected]> Cc: Jens Axboe <[email protected]> Cc: Steven French <[email protected]> Cc: Michael Halcrow <[email protected]> Cc: OGAWA Hirofumi <[email protected]> Cc: Miklos Szeredi <[email protected]> Cc: Steven Whitehouse <[email protected]> Cc: Roman Zippel <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Dave Kleikamp <[email protected]> Cc: Trond Myklebust <[email protected]> Cc: "J. Bruce Fields" <[email protected]> Cc: Anton Altaparmakov <[email protected]> Cc: Mark Fasheh <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Jan Kara <[email protected]> Cc: David Chinner <[email protected]> Cc: "David S. Miller" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
diff --git a/mm/rmap.c b/mm/rmap.c index 304f519..1c1af92 100644 --- a/mm/rmap.c +++ b/mm/rmap.c
@@ -162,12 +162,10 @@ 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)