On 04/21/2012 12:32 AM, Rik van Riel wrote: > On 04/20/2012 03:44 PM, Pavel Emelyanov wrote: > >> Andrew noticed, that the proc pagemap file solved 2 of 3 above issues -- it >> reports whether a page is present or swapped and it doesn't report not >> mapped page cache pages. But, it doesn't distinguish cow-ed file pages from >> not cow-ed. >> >> I would like to make the last unused bit in this file to report whether the >> page mapped into respective pte is PageAnon or not. >> >> Signed-off-by: Pavel Emelyanov<xemul@xxxxxxxxxx> > > Looks reasonable to me. I see you also report "special" pages > as file pages, but since those cannot be migrated anyway that > should be ok. Yes, and all the anon-shared pages happen to be PM_FILE too :) But they can be filtered with vma flags/prot, so I hoped it's OK to do it that way for simplicity. > Acked-by: Rik van Riel <riel@xxxxxxxxxx> > 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>