aboutsummaryrefslogtreecommitdiffstats
path: root/mm/ksm.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/ksm.c')
-rw-r--r--mm/ksm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/ksm.c b/mm/ksm.c
index ae539f0b8aa1..7fa37de1ee0c 100644
--- a/mm/ksm.c
+++ b/mm/ksm.c
@@ -1634,7 +1634,7 @@ again:
1634 struct anon_vma_chain *vmac; 1634 struct anon_vma_chain *vmac;
1635 struct vm_area_struct *vma; 1635 struct vm_area_struct *vma;
1636 1636
1637 anon_vma_lock(anon_vma); 1637 anon_vma_lock_write(anon_vma);
1638 anon_vma_interval_tree_foreach(vmac, &anon_vma->rb_root, 1638 anon_vma_interval_tree_foreach(vmac, &anon_vma->rb_root,
1639 0, ULONG_MAX) { 1639 0, ULONG_MAX) {
1640 vma = vmac->vma; 1640 vma = vmac->vma;
@@ -1688,7 +1688,7 @@ again:
1688 struct anon_vma_chain *vmac; 1688 struct anon_vma_chain *vmac;
1689 struct vm_area_struct *vma; 1689 struct vm_area_struct *vma;
1690 1690
1691 anon_vma_lock(anon_vma); 1691 anon_vma_lock_write(anon_vma);
1692 anon_vma_interval_tree_foreach(vmac, &anon_vma->rb_root, 1692 anon_vma_interval_tree_foreach(vmac, &anon_vma->rb_root,
1693 0, ULONG_MAX) { 1693 0, ULONG_MAX) {
1694 vma = vmac->vma; 1694 vma = vmac->vma;
@@ -1741,7 +1741,7 @@ again:
1741 struct anon_vma_chain *vmac; 1741 struct anon_vma_chain *vmac;
1742 struct vm_area_struct *vma; 1742 struct vm_area_struct *vma;
1743 1743
1744 anon_vma_lock(anon_vma); 1744 anon_vma_lock_write(anon_vma);
1745 anon_vma_interval_tree_foreach(vmac, &anon_vma->rb_root, 1745 anon_vma_interval_tree_foreach(vmac, &anon_vma->rb_root,
1746 0, ULONG_MAX) { 1746 0, ULONG_MAX) {
1747 vma = vmac->vma; 1747 vma = vmac->vma;