diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2005-05-25 17:58:04 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-05-25 17:58:04 -0400 |
commit | 4b463f785837f73bdd88ae3821bb7b69599010c9 (patch) | |
tree | 80dc0a7e3e33596ff3ece410d9ff9e6b63e45b87 /mm/rmap.c | |
parent | 6df16d0c35b9c0d3627f30c106e6142d3d12662b (diff) | |
parent | 384f1fcd2db8bc5a15f20f10793d8e1c82acd6c5 (diff) |
Merge of /home/davem/src/GIT/linux-2.6/.git/
Diffstat (limited to 'mm/rmap.c')
-rw-r--r-- | mm/rmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -626,7 +626,7 @@ static void try_to_unmap_cluster(unsigned long cursor, | |||
626 | pgd_t *pgd; | 626 | pgd_t *pgd; |
627 | pud_t *pud; | 627 | pud_t *pud; |
628 | pmd_t *pmd; | 628 | pmd_t *pmd; |
629 | pte_t *pte; | 629 | pte_t *pte, *original_pte; |
630 | pte_t pteval; | 630 | pte_t pteval; |
631 | struct page *page; | 631 | struct page *page; |
632 | unsigned long address; | 632 | unsigned long address; |
@@ -658,7 +658,7 @@ static void try_to_unmap_cluster(unsigned long cursor, | |||
658 | if (!pmd_present(*pmd)) | 658 | if (!pmd_present(*pmd)) |
659 | goto out_unlock; | 659 | goto out_unlock; |
660 | 660 | ||
661 | for (pte = pte_offset_map(pmd, address); | 661 | for (original_pte = pte = pte_offset_map(pmd, address); |
662 | address < end; pte++, address += PAGE_SIZE) { | 662 | address < end; pte++, address += PAGE_SIZE) { |
663 | 663 | ||
664 | if (!pte_present(*pte)) | 664 | if (!pte_present(*pte)) |
@@ -694,7 +694,7 @@ static void try_to_unmap_cluster(unsigned long cursor, | |||
694 | (*mapcount)--; | 694 | (*mapcount)--; |
695 | } | 695 | } |
696 | 696 | ||
697 | pte_unmap(pte); | 697 | pte_unmap(original_pte); |
698 | out_unlock: | 698 | out_unlock: |
699 | spin_unlock(&mm->page_table_lock); | 699 | spin_unlock(&mm->page_table_lock); |
700 | } | 700 | } |