aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
diff options
context:
space:
mode:
authorRik van Riel <riel@redhat.com>2010-08-09 20:18:37 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-09 23:44:54 -0400
commitbb4a340e075b7897ece109686bfa177f8518d2db (patch)
tree3cca938530a2367cfd66fcc8ca11809acb14b42b /mm/mmap.c
parent597781f3e51f48ef8e67be772196d9e9673752c4 (diff)
mm: rename anon_vma_lock to vma_lock_anon_vma
Rename anon_vma_lock to vma_lock_anon_vma. This matches the naming style used in page_lock_anon_vma and will come in really handy further down in this patch series. Signed-off-by: Rik van Riel <riel@redhat.com> Acked-by: Mel Gorman <mel@csn.ul.ie> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Tested-by: Larry Woodman <lwoodman@redhat.com> Acked-by: Larry Woodman <lwoodman@redhat.com> Reviewed-by: Minchan Kim <minchan.kim@gmail.com> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mmap.c')
-rw-r--r--mm/mmap.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index e38e910cb756..e26f1ea7c904 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -452,12 +452,12 @@ static void vma_link(struct mm_struct *mm, struct vm_area_struct *vma,
452 spin_lock(&mapping->i_mmap_lock); 452 spin_lock(&mapping->i_mmap_lock);
453 vma->vm_truncate_count = mapping->truncate_count; 453 vma->vm_truncate_count = mapping->truncate_count;
454 } 454 }
455 anon_vma_lock(vma); 455 vma_lock_anon_vma(vma);
456 456
457 __vma_link(mm, vma, prev, rb_link, rb_parent); 457 __vma_link(mm, vma, prev, rb_link, rb_parent);
458 __vma_link_file(vma); 458 __vma_link_file(vma);
459 459
460 anon_vma_unlock(vma); 460 vma_unlock_anon_vma(vma);
461 if (mapping) 461 if (mapping)
462 spin_unlock(&mapping->i_mmap_lock); 462 spin_unlock(&mapping->i_mmap_lock);
463 463
@@ -1710,7 +1710,7 @@ int expand_upwards(struct vm_area_struct *vma, unsigned long address)
1710 */ 1710 */
1711 if (unlikely(anon_vma_prepare(vma))) 1711 if (unlikely(anon_vma_prepare(vma)))
1712 return -ENOMEM; 1712 return -ENOMEM;
1713 anon_vma_lock(vma); 1713 vma_lock_anon_vma(vma);
1714 1714
1715 /* 1715 /*
1716 * vma->vm_start/vm_end cannot change under us because the caller 1716 * vma->vm_start/vm_end cannot change under us because the caller
@@ -1721,7 +1721,7 @@ int expand_upwards(struct vm_area_struct *vma, unsigned long address)
1721 if (address < PAGE_ALIGN(address+4)) 1721 if (address < PAGE_ALIGN(address+4))
1722 address = PAGE_ALIGN(address+4); 1722 address = PAGE_ALIGN(address+4);
1723 else { 1723 else {
1724 anon_vma_unlock(vma); 1724 vma_unlock_anon_vma(vma);
1725 return -ENOMEM; 1725 return -ENOMEM;
1726 } 1726 }
1727 error = 0; 1727 error = 0;
@@ -1739,7 +1739,7 @@ int expand_upwards(struct vm_area_struct *vma, unsigned long address)
1739 perf_event_mmap(vma); 1739 perf_event_mmap(vma);
1740 } 1740 }
1741 } 1741 }
1742 anon_vma_unlock(vma); 1742 vma_unlock_anon_vma(vma);
1743 return error; 1743 return error;
1744} 1744}
1745#endif /* CONFIG_STACK_GROWSUP || CONFIG_IA64 */ 1745#endif /* CONFIG_STACK_GROWSUP || CONFIG_IA64 */
@@ -1764,7 +1764,7 @@ static int expand_downwards(struct vm_area_struct *vma,
1764 if (error) 1764 if (error)
1765 return error; 1765 return error;
1766 1766
1767 anon_vma_lock(vma); 1767 vma_lock_anon_vma(vma);
1768 1768
1769 /* 1769 /*
1770 * vma->vm_start/vm_end cannot change under us because the caller 1770 * vma->vm_start/vm_end cannot change under us because the caller
@@ -1786,7 +1786,7 @@ static int expand_downwards(struct vm_area_struct *vma,
1786 perf_event_mmap(vma); 1786 perf_event_mmap(vma);
1787 } 1787 }
1788 } 1788 }
1789 anon_vma_unlock(vma); 1789 vma_unlock_anon_vma(vma);
1790 return error; 1790 return error;
1791} 1791}
1792 1792