Re: [PATCH 5/9] oom: cleanup has_intersects_mems_allowed()

From: David Rientjes
Date: Thu Jun 17 2010 - 00:21:01 EST


On Thu, 17 Jun 2010, KOSAKI Motohiro wrote:

>
> Now has_intersects_mems_allowed() has own thread iterate logic, but
> it should use while_each_thread().
>
> It slightly improve the code readability.
>
> Reviewed-by: Minchan Kim <minchan.kim@xxxxxxxxx>
> Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>

I disagree that the renaming of the variables is necessary, please simply
change the while (tsk != start) to use while_each_thread(tsk, start);
--
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/