Re: [PATCH] mm: gfp_to_alloc_flags()

Peter Zijlstra
2009-02-23T20:10:26Z

On Mon, 2009-02-23 at 18:17 +0000, Mel Gorman wrote:

> >
> > - if (((p->flags & PF_MEMALLOC) || unlikely(test_thread_flag(TIF_MEMDIE)))
> > - && !in_interrupt()) {
> > - if (!(gfp_mask & __GFP_NOMEMALLOC)) {
> >
>
> At what point was this code deleted?

You moved it around a bit, but it ended up here:

> > -static inline int is_allocation_high_priority(struct task_struct *p,
> > - gfp_t gfp_mask)
> > -{
> > - if (((p->flags & PF_MEMALLOC) || unlikely(test_thread_flag(TIF_MEMDIE)))
> > - && !in_interrupt())
> > - if (!(gfp_mask & __GFP_NOMEMALLOC))
> > - return 1;
> > - return 0;
> > -}