[patch 10/10] mm: memcg: only check anon swapin page charges for swap cache

2012-07-11 Thread Johannes Weiner
shmem knows for sure that the page is in swap cache when attempting to charge a page, because the cache charge entry function has a check for it. Only anon pages may be removed from swap cache already when trying to charge their swapin. Adjust the comment, though: '4969c11 mm: fix swapin race

[patch 10/10] mm: memcg: only check anon swapin page charges for swap cache

2012-07-11 Thread Johannes Weiner
shmem knows for sure that the page is in swap cache when attempting to charge a page, because the cache charge entry function has a check for it. Only anon pages may be removed from swap cache already when trying to charge their swapin. Adjust the comment, though: '4969c11 mm: fix swapin race