]> git.baikalelectronics.ru Git - kernel.git/commit
SLUB: Simplify dma index -> size calculation
authorChristoph Lameter <clameter@sgi.com>
Tue, 17 Jul 2007 11:03:27 +0000 (04:03 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 17 Jul 2007 17:23:01 +0000 (10:23 -0700)
commita057b6e90b7d485153fe95675379aac362fc15eb
tree6fb32a7051b4358018fb26a3125e3b9621418abe
parent663d39e494989b57ab0ffd47489fb902e650882c
SLUB: Simplify dma index -> size calculation

There is no need to caculate the dma slab size ourselves. We can simply
lookup the size of the corresponding non dma slab.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slub.c