diff options
Diffstat (limited to 'mm/swap_state.c')
-rw-r--r-- | mm/swap_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/swap_state.c b/mm/swap_state.c index c99463ac02fb..c8310a37be3a 100644 --- a/mm/swap_state.c +++ b/mm/swap_state.c | |||
@@ -95,7 +95,7 @@ int __add_to_swap_cache(struct page *page, swp_entry_t entry) | |||
95 | entry.val, page); | 95 | entry.val, page); |
96 | if (likely(!error)) { | 96 | if (likely(!error)) { |
97 | address_space->nrpages++; | 97 | address_space->nrpages++; |
98 | __inc_zone_page_state(page, NR_FILE_PAGES); | 98 | __inc_node_page_state(page, NR_FILE_PAGES); |
99 | INC_CACHE_INFO(add_total); | 99 | INC_CACHE_INFO(add_total); |
100 | } | 100 | } |
101 | spin_unlock_irq(&address_space->tree_lock); | 101 | spin_unlock_irq(&address_space->tree_lock); |
@@ -147,7 +147,7 @@ void __delete_from_swap_cache(struct page *page) | |||
147 | set_page_private(page, 0); | 147 | set_page_private(page, 0); |
148 | ClearPageSwapCache(page); | 148 | ClearPageSwapCache(page); |
149 | address_space->nrpages--; | 149 | address_space->nrpages--; |
150 | __dec_zone_page_state(page, NR_FILE_PAGES); | 150 | __dec_node_page_state(page, NR_FILE_PAGES); |
151 | INC_CACHE_INFO(del_total); | 151 | INC_CACHE_INFO(del_total); |
152 | } | 152 | } |
153 | 153 | ||