Re: [PATCH v8 07/14] mm: honor PF_MEMALLOC_PIN for all movable pages

2021-01-31 Thread Pavel Tatashin
On Sun, Jan 31, 2021 at 8:09 AM Lecopzer Chen wrote: > > > Hi, > > [...] > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > > index c93e801a45e9..3f17c73ad582 100644 > > --- a/mm/page_alloc.c > > +++ b/mm/page_alloc.c > > @@ -3807,16 +3807,13 @@ alloc_flags_nofragment(struct zone *zone, gfp_t >

Re: [PATCH v8 07/14] mm: honor PF_MEMALLOC_PIN for all movable pages

2021-01-31 Thread Lecopzer Chen
Hi, [...] > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index c93e801a45e9..3f17c73ad582 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -3807,16 +3807,13 @@ alloc_flags_nofragment(struct zone *zone, gfp_t > gfp_mask) > return alloc_flags; > } > > -static inline unsign

[PATCH v8 07/14] mm: honor PF_MEMALLOC_PIN for all movable pages

2021-01-25 Thread Pavel Tatashin
PF_MEMALLOC_PIN is only honored for CMA pages, extend this flag to work for any allocations from ZONE_MOVABLE by removing __GFP_MOVABLE from gfp_mask when this flag is passed in the current context. Add is_pinnable_page() to return true if page is in a pinnable page. A pinnable page is not in ZONE