Re: More bug fix in mm/hugetlb.c - fix try_to_free_low()

From: William Lee Irwin III
Date: Wed Jun 23 2004 - 17:43:22 EST


On Thu, Jun 24, 2004 at 08:17:29AM +1000, Keith Owens wrote:
> While we are discussing hugetlb, what is the official method of
> identifying a hugetlb page - at the page level, not through a vma?
> When taking a crash dump, hugetlb pages must be treated as user data,
> not as kernel pages. LKCD must be able to identify hugetlb pages from
> the page struct, dumping cannot assume that any mm context is valid so
> vma scans are out. The identification method must work whether the
> hugetlb pages are in use or not. In 2.4 LKCD I added PG_hugetlb, but I
> would prefer a test that did not require yet another PG flag.

PG_compound should get you going. You might want to do some extra
checks for order and release function just to be sure.


-- wli
-
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/