Re: [PATCH 3/3 htlb-acct] Demand faulting for huge pages

From: Andi Kleen
Date: Thu Sep 29 2005 - 04:47:27 EST


Andrew Morton <akpm@xxxxxxxx> writes:

(having written the original SLES9 code I will chime in ...)

> > +unsigned long
> > +huge_pages_needed(struct address_space *mapping, struct vm_area_struct *vma)
> > +{
>
> What does this function do? Seems to count all the present pages within a
> vma which are backed by a particular hugetlbfs file? Or something?

It counts how many huge pages are still needed to fill up a mapping completely.
In short it counts the holes. I think the name fits.

-Andi

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