[BUG][PATCH] memory hotremoval for linux-2.6.7 [12/16]

From: Hirokazu Takahashi
Date: Wed Jul 14 2004 - 09:33:15 EST



--- linux-2.6.7/mm/hugetlb.c.save Wed Jul 7 18:34:06 2032
+++ linux-2.6.7/mm/hugetlb.c Wed Jul 7 18:35:10 2032
@@ -149,8 +149,8 @@ static int try_to_free_low(unsigned long
{
int i;
for (i = 0; i < MAX_NUMNODES; ++i) {
- struct page *page;
- list_for_each_entry(page, &hugepage_freelists[i], lru) {
+ struct page *page, *page1;
+ list_for_each_entry_safe(page, page1, &hugepage_freelists[i], lru) {
if (PageHighMem(page))
continue;
list_del(&page->lru);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/