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

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

 



On 12/26/2011 04:05 AM, KOSAKI Motohiro wrote:
>> +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)?
> .

Do you mean mapped files from tmpfs? Currently just any other file.
Do you see problems with this patch wrt tmpfs?

Thanks,
Pavel

--
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=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>


[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]