aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/memcontrol.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/memcontrol.h')
-rw-r--r--include/linux/memcontrol.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
index 96e5d2573eb0..5155d09e749d 100644
--- a/include/linux/memcontrol.h
+++ b/include/linux/memcontrol.h
@@ -537,7 +537,7 @@ memcg_kmem_newpage_charge(gfp_t gfp, struct mem_cgroup **memcg, int order)
537 * res_counter_charge_nofail, but we hope those allocations are rare, 537 * res_counter_charge_nofail, but we hope those allocations are rare,
538 * and won't be worth the trouble. 538 * and won't be worth the trouble.
539 */ 539 */
540 if (!(gfp & __GFP_KMEMCG) || (gfp & __GFP_NOFAIL)) 540 if (gfp & __GFP_NOFAIL)
541 return true; 541 return true;
542 if (in_interrupt() || (!current->mm) || (current->flags & PF_KTHREAD)) 542 if (in_interrupt() || (!current->mm) || (current->flags & PF_KTHREAD))
543 return true; 543 return true;