Re: [PATCH] mm: gfp_to_alloc_flags()

From: Peter Zijlstra
Date: Mon Feb 23 2009 - 15:10:26 EST


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;
> > -}

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/