setup_per_zone_pages_min(): take zone->lock instead of zone->lru_lock
authorGerald Schaefer <[email protected]>
Sun, 19 Oct 2008 03:27:11 +0000 (20:27 -0700)
committerLinus Torvalds <[email protected]>
Mon, 20 Oct 2008 15:52:32 +0000 (08:52 -0700)
commit1125b4e3949949b44a7c80b619507c6f61d62911
tree74d1461ce1bb7eec62ce5f020061c4d7c1a4feba
parent4b2e38ad703541f7845c2d766426148b8d1aa329
setup_per_zone_pages_min(): take zone->lock instead of zone->lru_lock

This replaces zone->lru_lock in setup_per_zone_pages_min() with zone->lock.
There seems to be no need for the lru_lock anymore, but there is a need for
zone->lock instead, because that function may call move_freepages() via
setup_zone_migrate_reserve().

Signed-off-by: Gerald Schaefer <[email protected]>
Acked-by: KAMEZAWA Hiroyuki <[email protected]>
Tested-by: Yasunori Goto <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/page_alloc.c