Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
These changes are a raw update to a vanilla kernel 4.1.10, with the
[kvmfornfv.git]
/
kernel
/
mm
/
slab.c
diff --git
a/kernel/mm/slab.c
b/kernel/mm/slab.c
index
7eb38dd
..
3dd2d1f
100644
(file)
--- a/
kernel/mm/slab.c
+++ b/
kernel/mm/slab.c
@@
-1602,7
+1602,7
@@
static struct page *kmem_getpages(struct kmem_cache *cachep, gfp_t flags,
}
/* Record if ALLOC_NO_WATERMARKS was set when allocating the slab */
}
/* Record if ALLOC_NO_WATERMARKS was set when allocating the slab */
- if (
unlikely(page->pfmemalloc
))
+ if (
page_is_pfmemalloc(page
))
pfmemalloc_active = true;
nr_pages = (1 << cachep->gfporder);
pfmemalloc_active = true;
nr_pages = (1 << cachep->gfporder);
@@
-1613,7
+1613,7
@@
static struct page *kmem_getpages(struct kmem_cache *cachep, gfp_t flags,
add_zone_page_state(page_zone(page),
NR_SLAB_UNRECLAIMABLE, nr_pages);
__SetPageSlab(page);
add_zone_page_state(page_zone(page),
NR_SLAB_UNRECLAIMABLE, nr_pages);
__SetPageSlab(page);
- if (page
->pfmemalloc
)
+ if (page
_is_pfmemalloc(page)
)
SetPageSlabPfmemalloc(page);
if (kmemcheck_enabled && !(cachep->flags & SLAB_NOTRACK)) {
SetPageSlabPfmemalloc(page);
if (kmemcheck_enabled && !(cachep->flags & SLAB_NOTRACK)) {