Re: [PATCH v10 04/17] mm: slub: introduce virt_to_obj function.

2015-01-30 Thread Andrey Ryabinin
On 01/30/2015 02:12 AM, Andrew Morton wrote: > On Thu, 29 Jan 2015 18:11:48 +0300 Andrey Ryabinin > wrote: > >> 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. > > "beginning" > > T

Re: [PATCH v10 04/17] mm: slub: introduce virt_to_obj function.

2015-01-29 Thread Andrew Morton
On Thu, 29 Jan 2015 18:11:48 +0300 Andrey Ryabinin wrote: > 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. "beginning" The above text may as well be placed into slub_def.h as a comme

[PATCH v10 04/17] mm: slub: introduce virt_to_obj function.

2015-01-29 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 --g