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" > >

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 a.ryabi...@samsung.com 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.

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

[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

[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 a.ryabi...@samsung.com Acked-by: Christoph Lameter c...@linux.com --- include/linux/slub_def.h | 5 + 1

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 a.ryabi...@samsung.com 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