diff options
Diffstat (limited to 'fs/proc/task_mmu.c')
-rw-r--r-- | fs/proc/task_mmu.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 9694cc283511..c283832d411d 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c | |||
@@ -781,9 +781,6 @@ static int pagemap_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end, | |||
781 | int err = 0; | 781 | int err = 0; |
782 | pagemap_entry_t pme = make_pme(PM_NOT_PRESENT); | 782 | pagemap_entry_t pme = make_pme(PM_NOT_PRESENT); |
783 | 783 | ||
784 | if (pmd_trans_unstable(pmd)) | ||
785 | return 0; | ||
786 | |||
787 | /* find the first VMA at or above 'addr' */ | 784 | /* find the first VMA at or above 'addr' */ |
788 | vma = find_vma(walk->mm, addr); | 785 | vma = find_vma(walk->mm, addr); |
789 | spin_lock(&walk->mm->page_table_lock); | 786 | spin_lock(&walk->mm->page_table_lock); |
@@ -802,6 +799,8 @@ static int pagemap_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end, | |||
802 | return err; | 799 | return err; |
803 | } | 800 | } |
804 | 801 | ||
802 | if (pmd_trans_unstable(pmd)) | ||
803 | return 0; | ||
805 | for (; addr != end; addr += PAGE_SIZE) { | 804 | for (; addr != end; addr += PAGE_SIZE) { |
806 | 805 | ||
807 | /* check to see if we've left 'vma' behind | 806 | /* check to see if we've left 'vma' behind |