diff options
Diffstat (limited to 'mm/swapfile.c')
-rw-r--r-- | mm/swapfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c index 5d3a7f23e..a84e73f2f 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -315,10 +315,12 @@ static void unuse_process(struct mm_struct * mm, */ if (!mm) return; + vmlist_access_lock(mm); for (vma = mm->mmap; vma; vma = vma->vm_next) { pgd_t * pgd = pgd_offset(mm, vma->vm_start); unuse_vma(vma, pgd, entry, page); } + vmlist_access_unlock(mm); return; } |