Re: [PATCH 2/3] mincore: Introduce the MINCORE_ANON bit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +static unsigned char mincore_pte(struct vm_area_struct *vma, unsigned long addr, pte_t pte)
> +{
> +       struct page *pg;
> +
> +       pg = vm_normal_page(vma, addr, pte);
> +       if (!pg)
> +               return 0;
> +       else
> +               return PageAnon(pg) ? MINCORE_ANON : 0;
> +}
> +

How do your program handle tmpfs pages (and/or ram device pages)?

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]