Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 425c7cfe authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "staging: ion: shrink highmem pages on kswapd"

parents 68fe0c60 8b5f866c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@
#include <linux/list.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/swap.h>
#include <linux/vmalloc.h>
#include "ion_priv.h"

@@ -128,6 +129,9 @@ int ion_page_pool_shrink(struct ion_page_pool *pool, gfp_t gfp_mask,
	int i;
	bool high;

	if (current_is_kswapd())
		high = 1;
	else
		high = !!(gfp_mask & __GFP_HIGHMEM);

	for (i = 0; i < nr_to_scan; i++) {