Re: + oom-move-constraints-to-enum.patch added to -mm tree

From: David Rientjes
Date: Fri Sep 21 2007 - 16:06:55 EST


On Sat, 22 Sep 2007, Alexey Dobriyan wrote:

> On Fri, Sep 21, 2007 at 02:10:57AM -0700, akpm@xxxxxxxxxxxxxxxxxxxx wrote:
> > The OOM killer's CONSTRAINT definitions are really more appropriate in an
> > enum, so define them in include/linux/oom.h.
>
> OK with enum, but this series do not bring user outside of
> mm/oom_kill.c, so why move them to header.
>

I'm not ruling it out, it may be helpful to pass the enum to
out_of_memory() when we serialize based on GFP_DMA allocations or memory
policies.
-
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/