[PATCH v6 05/11] mm: slub: introduce virt_to_obj function.

2014-11-05 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 --- include/linux/slub_def.h | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v6 05/11] mm: slub: introduce virt_to_obj function.

2014-11-05 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 --- include/linux/slub_def.h | 5 + 1 file changed, 5 insertions(+) diff --git