swsusp: clean up shrink_all_zones()
authorJohannes Weiner <hannes@cmpxchg.org>
Sat, 14 Feb 2009 01:04:10 +0000 (02:04 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 Feb 2009 22:17:17 +0000 (14:17 -0800)
commit0cb57258fe01e9b21076b6a15b6aec7a24168228
tree9744786d92356a21d3d2bcd2d3cc2935d81a489f
parent3049103ddfc9aac111916bd2f39ac6976c431517
swsusp: clean up shrink_all_zones()

Move local variables to innermost possible scopes and use local
variables to cache calculations/reads done more than once.

No change in functionality (intended).

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Len Brown <lenb@kernel.org>
Cc: Greg KH <gregkh@suse.de>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmscan.c