aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/slab.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 67527268b01c..afe9c5f8c57a 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -1559,8 +1559,13 @@ static void set_up_list3s(struct kmem_cache *cachep, int index)
1559} 1559}
1560 1560
1561/** 1561/**
1562 * calculate_slab_order - calculate size (page order) of slabs and the number 1562 * calculate_slab_order - calculate size (page order) of slabs
1563 * of objects per slab. 1563 * @cachep: pointer to the cache that is being created
1564 * @size: size of objects to be created in this cache.
1565 * @align: required alignment for the objects.
1566 * @flags: slab allocation flags
1567 *
1568 * Also calculates the number of objects per slab.
1564 * 1569 *
1565 * This could be made much more intelligent. For now, try to avoid using 1570 * This could be made much more intelligent. For now, try to avoid using
1566 * high order pages for slabs. When the gfp() functions are more friendly 1571 * high order pages for slabs. When the gfp() functions are more friendly