diff options
Diffstat (limited to 'mm/migrate.c')
-rw-r--r-- | mm/migrate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/migrate.c b/mm/migrate.c index b768a1d4fa43..42a3d24d1107 100644 --- a/mm/migrate.c +++ b/mm/migrate.c | |||
@@ -601,7 +601,7 @@ static int unmap_and_move(new_page_t get_new_page, unsigned long private, | |||
601 | rcu_read_lock(); | 601 | rcu_read_lock(); |
602 | rcu_locked = 1; | 602 | rcu_locked = 1; |
603 | anon_vma = page_anon_vma(page); | 603 | anon_vma = page_anon_vma(page); |
604 | atomic_inc(&anon_vma->migrate_refcount); | 604 | atomic_inc(&anon_vma->external_refcount); |
605 | } | 605 | } |
606 | 606 | ||
607 | /* | 607 | /* |
@@ -643,7 +643,7 @@ skip_unmap: | |||
643 | rcu_unlock: | 643 | rcu_unlock: |
644 | 644 | ||
645 | /* Drop an anon_vma reference if we took one */ | 645 | /* Drop an anon_vma reference if we took one */ |
646 | if (anon_vma && atomic_dec_and_lock(&anon_vma->migrate_refcount, &anon_vma->lock)) { | 646 | if (anon_vma && atomic_dec_and_lock(&anon_vma->external_refcount, &anon_vma->lock)) { |
647 | int empty = list_empty(&anon_vma->head); | 647 | int empty = list_empty(&anon_vma->head); |
648 | spin_unlock(&anon_vma->lock); | 648 | spin_unlock(&anon_vma->lock); |
649 | if (empty) | 649 | if (empty) |