summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2011-05-26 23:25:30 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2011-05-27 00:12:35 (GMT)
commit33278f7f0a9e5a9b29f59e07b7e3182d27769ac2 (patch)
tree8de853c293856cc227d703ffaa0e12410efa1fcd /samples
parent268433b8e54486b12478e94ba18587bcc7de4d57 (diff)
downloadlinux-fsl-qoriq-33278f7f0a9e5a9b29f59e07b7e3182d27769ac2.tar.xz
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 <namhyung@gmail.com> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com> Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp> Cc: Michal Hocko <mhocko@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions