projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
298ff6e
)
kmalloc: Fix comment
author
Sepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 10 Oct 2012 12:44:54 +0000 (20:44 +0800)
committer
Sepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 10 Oct 2012 12:44:54 +0000 (20:44 +0800)
sys/kern/kern_slaballoc.c
patch
|
blob
|
blame
|
history
diff --git
a/sys/kern/kern_slaballoc.c
b/sys/kern/kern_slaballoc.c
index
d23cf8c
..
3fc43d7
100644
(file)
--- a/
sys/kern/kern_slaballoc.c
+++ b/
sys/kern/kern_slaballoc.c
@@
-826,7
+826,7
@@
kmalloc(unsigned long size, struct malloc_type *type, int flags)
/*
* Guarentee power-of-2 alignment for power-of-2-sized chunks.
- * Otherwise just 8-byte align the data.
+ * Otherwise properly align the data according to the chunk size.
*/
if (powerof2(size))
off = (off + size - 1) & ~(size - 1);