summaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorChen, Kenneth W <kenneth.w.chen@intel.com>2006-12-07 05:31:39 +0100
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-07 17:39:20 +0100
commitc0a499c2c42992cff097b38be29d2ba60d2fd99a (patch)
treee02e80f190eb6f4eedb2c991d92840137505f8f8 /mm/hugetlb.c
parent[PATCH] memory page alloc minor cleanups (diff)
downloadlinux-c0a499c2c42992cff097b38be29d2ba60d2fd99a.tar.xz
linux-c0a499c2c42992cff097b38be29d2ba60d2fd99a.zip
[PATCH] __unmap_hugepage_range(): add comment
Signed-off-by: Ken Chen <kenneth.w.chen@intel.com> Cc: David Gibson <david@gibson.dropbear.id.au> Cc: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r--mm/hugetlb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index a088f593a807..f7355bf2f285 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -365,6 +365,11 @@ void __unmap_hugepage_range(struct vm_area_struct *vma, unsigned long start,
pte_t pte;
struct page *page;
struct page *tmp;
+ /*
+ * A page gathering list, protected by per file i_mmap_lock. The
+ * lock is used to avoid list corruption from multiple unmapping
+ * of the same page since we are using page->lru.
+ */
LIST_HEAD(page_list);
WARN_ON(!is_vm_hugetlb_page(vma));