mm: fix dubious code in __count_immobile_pages()
authorNamhyung Kim <namhyung@gmail.com>
Fri, 25 Feb 2011 22:44:25 +0000 (14:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Feb 2011 23:07:37 +0000 (15:07 -0800)
commit29723fccc837d20039078f7a571e8d457eb0d6c6
treef11e37b20388eb12f04ae8718b247e931ce99379
parenta2d6d2fa90c0e1d2cc1d59ccb5bbe93bb28b7413
mm: fix dubious code in __count_immobile_pages()

When pfn_valid_within() failed 'iter' was incremented twice.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c