Re: [RFC PATCH 1/4] mm: introduce a safer interface to check whether a page is managed by SLxB

2012-09-04 Thread Jiang Liu
Need to simplify the patch set:) Busy with PCI patches recently and will work on this when PCI is done. On 2012-9-4 17:18, Wen Congyang wrote: > At 07/03/2012 11:57 AM, Jiang Liu Wrote: >> Several subsystems, including memory-failure, swap, sparse, DRBD etc, >> use PageSlab() to check whether a

Re: [RFC PATCH 1/4] mm: introduce a safer interface to check whether a page is managed by SLxB

2012-09-04 Thread Wen Congyang
At 07/03/2012 11:57 AM, Jiang Liu Wrote: > Several subsystems, including memory-failure, swap, sparse, DRBD etc, > use PageSlab() to check whether a page is managed by SLAB/SLUB/SLOB. > And they treat slab pages differently from pagecache/anonymous pages. > > But it's unsafe to use PageSlab() to

Re: [RFC PATCH 1/4] mm: introduce a safer interface to check whether a page is managed by SLxB

2012-09-04 Thread Wen Congyang
At 07/03/2012 11:57 AM, Jiang Liu Wrote: Several subsystems, including memory-failure, swap, sparse, DRBD etc, use PageSlab() to check whether a page is managed by SLAB/SLUB/SLOB. And they treat slab pages differently from pagecache/anonymous pages. But it's unsafe to use PageSlab() to

Re: [RFC PATCH 1/4] mm: introduce a safer interface to check whether a page is managed by SLxB

2012-09-04 Thread Jiang Liu
Need to simplify the patch set:) Busy with PCI patches recently and will work on this when PCI is done. On 2012-9-4 17:18, Wen Congyang wrote: At 07/03/2012 11:57 AM, Jiang Liu Wrote: Several subsystems, including memory-failure, swap, sparse, DRBD etc, use PageSlab() to check whether a page

Re: [RFC PATCH 1/4] mm: introduce a safer interface to check whether a page is managed by SLxB

2012-07-06 Thread Jiang Liu
Hi Chris, Really appreciate your suggestions and I will work out a new version to fix callers of PageSlab() instead of changing the slab allocator. Thanks! Gerry On 07/06/2012 09:50 PM, Christoph Lameter wrote: > On Fri, 6 Jul 2012, Jiang Liu wrote: > >> Originally

Re: [RFC PATCH 1/4] mm: introduce a safer interface to check whether a page is managed by SLxB

2012-07-06 Thread Jiang Liu
Hi Chris, Really appreciate your suggestions and I will work out a new version to fix callers of PageSlab() instead of changing the slab allocator. Thanks! Gerry On 07/06/2012 09:50 PM, Christoph Lameter wrote: On Fri, 6 Jul 2012, Jiang Liu wrote: Originally the