[PATCH] slab: extract virt_to_{cache|slab}
authorPekka Enberg <penberg@cs.helsinki.fi>
Wed, 1 Feb 2006 11:05:49 +0000 (03:05 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 1 Feb 2006 16:53:18 +0000 (08:53 -0800)
commit6ed5eb2211204224799b2821656bbbfde26ef200
tree46c9c3d34317bcee626343acf9aec12c87ee9f32
parent5295a74cc0bcf1291686eb734ccb06baa3d55c1a
[PATCH] slab: extract virt_to_{cache|slab}

Introduce virt_to_cache() and virt_to_slab() functions to reduce duplicate
code and introduce a proper abstraction should we want to support other kind
of mapping for address to slab and cache (eg.  for vmalloc() or I/O memory).

Acked-by: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/slab.c