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

Commit c7cf52ef authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "pagemap.h: Allow readahead Movable allocations from CMA region"

parents 3a22bacc aae482fc
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -239,8 +239,13 @@ static inline struct page *page_cache_alloc_cold(struct address_space *x)

static inline gfp_t readahead_gfp_mask(struct address_space *x)
{
	return mapping_gfp_mask(x) |
	gfp_t gfp_mask = mapping_gfp_mask(x) |
				__GFP_COLD | __GFP_NORETRY | __GFP_NOWARN;

	if (gfp_mask & __GFP_MOVABLE)
		gfp_mask |= __GFP_CMA;

	return gfp_mask;
}

typedef int filler_t(struct file *, struct page *);