summaryrefslogtreecommitdiffstats
path: root/mm/page_idle.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page_idle.c')
-rw-r--r--mm/page_idle.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/page_idle.c b/mm/page_idle.c
index b9e4b42b33ab..0b39ec0c945c 100644
--- a/mm/page_idle.c
+++ b/mm/page_idle.c
@@ -31,7 +31,7 @@
31static struct page *page_idle_get_page(unsigned long pfn) 31static struct page *page_idle_get_page(unsigned long pfn)
32{ 32{
33 struct page *page; 33 struct page *page;
34 struct zone *zone; 34 pg_data_t *pgdat;
35 35
36 if (!pfn_valid(pfn)) 36 if (!pfn_valid(pfn))
37 return NULL; 37 return NULL;
@@ -41,13 +41,13 @@ static struct page *page_idle_get_page(unsigned long pfn)
41 !get_page_unless_zero(page)) 41 !get_page_unless_zero(page))
42 return NULL; 42 return NULL;
43 43
44 zone = page_zone(page); 44 pgdat = page_pgdat(page);
45 spin_lock_irq(zone_lru_lock(zone)); 45 spin_lock_irq(&pgdat->lru_lock);
46 if (unlikely(!PageLRU(page))) { 46 if (unlikely(!PageLRU(page))) {
47 put_page(page); 47 put_page(page);
48 page = NULL; 48 page = NULL;
49 } 49 }
50 spin_unlock_irq(zone_lru_lock(zone)); 50 spin_unlock_irq(&pgdat->lru_lock);
51 return page; 51 return page;
52} 52}
53 53