diff options
author | Joonsoo Kim <iamjoonsoo.kim@lge.com> | 2013-10-24 10:07:37 +0900 |
---|---|---|
committer | Pekka Enberg <penberg@iki.fi> | 2013-10-24 20:17:19 +0300 |
commit | 73293c2f900d0adbb6a415b312cd57976d5ae242 (patch) | |
tree | ff87b3e043fc9774431469a5b5d917bf6c28f570 /Documentation/vfio.txt | |
parent | 6e4664525b1db28f8c4e1130957f70a94c19213e (diff) | |
download | op-kernel-dev-73293c2f900d0adbb6a415b312cd57976d5ae242.zip op-kernel-dev-73293c2f900d0adbb6a415b312cd57976d5ae242.tar.gz |
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>
Diffstat (limited to 'Documentation/vfio.txt')
0 files changed, 0 insertions, 0 deletions