Joonsoo Kim 73293c2f90 slab: correct pfmemalloc check
We checked pfmemalloc by slab unit, not page unit. You can see this
in is_slab_pfmemalloc(). So other pages don't need to be set/cleared
pfmemalloc.

And, therefore we should check pfmemalloc in page flag of first page,
but current implementation don't do that. virt_to_head_page(obj) just
return 'struct page' of that object, not one of first page, since the SLAB
don't use __GFP_COMP when CONFIG_MMU. To get 'struct page' of first page,
we first get a slab and try to get it via virt_to_head_page(slab->s_mem).

Acked-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Pekka Enberg <penberg@iki.fi>
2013-10-24 20:17:19 +03:00
..
2013-07-16 10:57:36 -07:00
2013-07-03 16:07:39 -07:00
2012-01-03 22:54:56 -05:00
2011-07-26 16:49:47 -07:00
2013-07-09 10:33:22 -07:00
2013-07-10 18:11:34 -07:00
2013-07-10 18:11:34 -07:00
2013-06-28 14:34:33 +02:00
2013-02-23 17:50:18 -08:00
2010-05-21 18:31:21 -04:00
2013-07-10 18:11:34 -07:00
2012-06-20 14:39:36 -07:00
2013-08-13 17:57:48 -07:00
2013-10-24 20:17:19 +03:00
2013-07-10 18:11:34 -07:00
2013-07-10 18:11:34 -07:00