Re: [PATCH 2/3] memcg: fix off-by-one when calculating swap cgroupmap length

From: KAMEZAWA Hiroyuki
Date: Mon Mar 21 2011 - 20:05:18 EST


On Fri, 18 Mar 2011 21:54:14 +0900
Namhyung Kim <namhyung@xxxxxxxxx> wrote:

> It allocated one more page than necessary if @max_pages was
> a multiple of SC_PER_PAGE.
>
> Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxx>
> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>

Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>

--
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/