summaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authorRandy.Dunlap2006-02-01 12:05:52 +0100
committerLinus Torvalds2006-02-01 17:53:18 +0100
commita70773ddb96b74c7afe5a5bc859ba45e3d02899e (patch)
tree7bb27a62bb4230c533cc25f2c8024906e431b80a /mm/slab.c
parent[PATCH] slab: fix kzalloc and kstrdup caller report for CONFIG_DEBUG_SLAB (diff)
downloadkernel-qcow2-linux-a70773ddb96b74c7afe5a5bc859ba45e3d02899e.tar.gz
kernel-qcow2-linux-a70773ddb96b74c7afe5a5bc859ba45e3d02899e.tar.xz
kernel-qcow2-linux-a70773ddb96b74c7afe5a5bc859ba45e3d02899e.zip
[PATCH] mm/slab: add kernel-doc for one function
Fix kernel-doc for calculate_slab_order(). Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/slab.c')
-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)
}
/**
- * calculate_slab_order - calculate size (page order) of slabs and the number
- * of objects per slab.
+ * calculate_slab_order - calculate size (page order) of slabs
+ * @cachep: pointer to the cache that is being created
+ * @size: size of objects to be created in this cache.
+ * @align: required alignment for the objects.
+ * @flags: slab allocation flags
+ *
+ * Also calculates the number of objects per slab.
*
* This could be made much more intelligent. For now, try to avoid using
* high order pages for slabs. When the gfp() functions are more friendly