Messages in this thread | | | Subject | Re: [PATCH 3/3 htlb-acct] Demand faulting for huge pages | From | Andi Kleen <> | Date | 29 Sep 2005 11:45:12 +0200 |
| |
Andrew Morton <akpm@osdl.org> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |