projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0798e51
)
[PATCH] __unmap_hugepage_range(): add comment
author
Chen, Kenneth W
<
[email protected]
>
Thu, 7 Dec 2006 04:31:39 +0000
(20:31 -0800)
committer
Linus Torvalds
<
[email protected]
>
Thu, 7 Dec 2006 16:39:20 +0000
(08:39 -0800)
Signed-off-by: Ken Chen <
[email protected]
>
Cc: David Gibson <
[email protected]
>
Cc: Hugh Dickins <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/hugetlb.c
patch
|
blob
|
history
diff --git
a/mm/hugetlb.c
b/mm/hugetlb.c
index a088f593a807532aa9b37307a04b5427becfd449..f7355bf2f285e359d93e41149338f70f267fb144 100644
(file)
--- 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));