kmalloc: Fix comment
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 10 Oct 2012 12:44:54 +0000 (20:44 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 10 Oct 2012 12:44:54 +0000 (20:44 +0800)
sys/kern/kern_slaballoc.c

index d23cf8c..3fc43d7 100644 (file)
@@ -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);