mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
pagemap.h: Allow readahead Movable allocations from CMA region
There are a lot of readahead Movable allocations. These allocations don't appear to get 'pinned' so allow them to be satisfied from the CMA region in order to better utilize CMA memory. Change-Id: I87387a748e67a6963b9a526b729e6e273c1cc519 Signed-off-by: Liam Mark <lmark@codeaurora.org>
This commit is contained in:
parent
8b04672471
commit
999f2ea7d8
1 changed files with 7 additions and 1 deletions
|
|
@ -223,7 +223,13 @@ static inline struct page *page_cache_alloc(struct address_space *x)
|
|||
|
||||
static inline gfp_t readahead_gfp_mask(struct address_space *x)
|
||||
{
|
||||
return mapping_gfp_mask(x) | __GFP_NORETRY | __GFP_NOWARN;
|
||||
gfp_t gfp_mask = mapping_gfp_mask(x) |
|
||||
__GFP_NORETRY | __GFP_NOWARN;
|
||||
|
||||
if (gfp_mask & __GFP_MOVABLE)
|
||||
gfp_mask |= __GFP_CMA;
|
||||
|
||||
return gfp_mask;
|
||||
}
|
||||
|
||||
typedef int filler_t(void *, struct page *);
|
||||
|
|
|
|||
Loading…
Reference in a new issue