[PATCH v8 05/12] mm: slub: introduce virt_to_obj function.

2014-11-27 Thread Andrey Ryabinin
virt_to_obj takes kmem_cache address, address of slab page, address x pointing somewhere inside slab object, and returns address of the begging of object. Signed-off-by: Andrey Ryabinin Acked-by: Christoph Lameter --- include/linux/slub_def.h | 5 + 1 file changed, 5 insertions(+) diff

[PATCH v8 05/12] mm: slub: introduce virt_to_obj function.

2014-11-27 Thread Andrey Ryabinin
virt_to_obj takes kmem_cache address, address of slab page, address x pointing somewhere inside slab object, and returns address of the begging of object. Signed-off-by: Andrey Ryabinin a.ryabi...@samsung.com Acked-by: Christoph Lameter c...@linux.com --- include/linux/slub_def.h | 5 + 1