On Thu, 1 Dec 2011 18:32:02 +0900 KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> wrote: > > total_scan is unsigned long, so the overflow check (total_scan < 0) > > didn't work. > > > > Signed-off-by: Xi Wang <xi.wang@xxxxxxxxx> > > Nice catch but.... the 'total_scan" shouldn't be long ? > Rather than type casting ? Konstantin Khlebnikov's "vmscan: fix initial shrinker size handling" does change it to `long'. That patch is in -mm and linux-next and is queued for 3.3. It was queued for 3.2 but didn't make it due to some me/Dave Chinner confusion. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>