linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] TRIVIAL: mmap.c: fix comment for __insert_vm_struct()
@ 2012-03-16 17:23 Kautuk Consul
  2012-03-19  0:33 ` KAMEZAWA Hiroyuki
  0 siblings, 1 reply; 3+ messages in thread
From: Kautuk Consul @ 2012-03-16 17:23 UTC (permalink / raw)
  To: Jiri Kosina, Andrew Morton, Hugh Dickins, KOSAKI Motohiro,
	Peter Zijlstra, KAMEZAWA Hiroyuki
  Cc: linux-mm, linux-kernel, Kautuk Consul

The comment above __insert_vm_struct seems to suggest that this
function is also going to link the VMA with the anon_vma, but
this is not true.
This function only links the VMA to the mm->mm_rb tree and the mm->mmap linked
list.

Signed-off-by: Kautuk Consul <consul.kautuk@gmail.com>
---
 mm/mmap.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/mmap.c b/mm/mmap.c
index da15a79..6328a36 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -452,8 +452,8 @@ static void vma_link(struct mm_struct *mm, struct vm_area_struct *vma,
 
 /*
  * Helper for vma_adjust in the split_vma insert case:
- * insert vm structure into list and rbtree and anon_vma,
- * but it has already been inserted into prio_tree earlier.
+ * insert vm structure into list and rbtree, but it has
+ * already been inserted into prio_tree earlier.
  */
 static void __insert_vm_struct(struct mm_struct *mm, struct vm_area_struct *vma)
 {
-- 
1.7.5.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-19 23:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-16 17:23 [PATCH 1/1] TRIVIAL: mmap.c: fix comment for __insert_vm_struct() Kautuk Consul
2012-03-19  0:33 ` KAMEZAWA Hiroyuki
2012-03-19 23:16   ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).