From: Namhyung Kim Date: Thu, 26 May 2011 23:25:30 +0000 (-0700) Subject: memcg: fix off-by-one when calculating swap cgroup map length X-Git-Tag: v3.0-rc1~95 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33278f7f0a9e5a9b29f59e07b7e3182d27769ac2;p=pandora-kernel.git memcg: fix off-by-one when calculating swap cgroup map length It allocated one more page than necessary if @max_pages was a multiple of SC_PER_PAGE. Signed-off-by: Namhyung Kim Acked-by: KAMEZAWA Hiroyuki Acked-by: Balbir Singh Cc: Daisuke Nishimura Cc: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed