lkml.org 
[lkml]   [2015]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/4] mm, oom: organize oom context into struct
On Thu, 9 Jul 2015, Michal Hocko wrote:

> > > From: David Rientjes <rientjes@google.com>
> > >
> > > There are essential elements to an oom context that are passed around to
> > > multiple functions.
> > >
> > > Organize these elements into a new struct, struct oom_context, that
> > > specifies the context for an oom condition.
> > >
> > > This patch introduces no functional change.
> > >
> > > [mhocko@suse.cz: s@oom_control@oom_context@]
> > > [mhocko@suse.cz: do not initialize on stack oom_context with NULL or 0]
> > > Signed-off-by: David Rientjes <rientjes@google.com>
> > > Signed-off-by: Michal Hocko <mhocko@suse.cz>
> >
> > I hate to appear to be nacking my own patch, but it was correct when
> > included in my series
>
> What is incorrect in this patch?

Nothing, the statement is quite clear that it is also correct in my series
which is much cleaner, reduces stack usage, removes more lines of code
than yours, and organizes the oom killer code to avoid passing so many
formals which should have been done long ago.


\
 
 \ /
  Last update: 2015-07-09 23:21    [W:0.291 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site