On 06/02/2014 11:18 PM, Naoya Horiguchi wrote: > + /* > + * Huge pages are always in RAM for now, but > + * theoretically it needs to be checked. > + */ > + present = pte && !huge_pte_none(huge_ptep_get(pte)); > + for (; addr != end; vec++, addr += PAGE_SIZE) > + *vec = present; > + cond_resched(); > + walk->private += (end - addr) >> PAGE_SHIFT;
That comment is bogus, fwiw. Huge pages are demand-faulted and it's quite possible that they are not present. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

