summaryrefslogtreecommitdiffstats
path: root/mm/huge_memory.c
diff options
context:
space:
mode:
authorNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>2014-01-24 00:52:53 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-24 01:36:50 +0100
commite3bba3c3c90cd434c1ccb9e5dc704a96baf9541c (patch)
tree86897834d0ccbe93f8b44249569a2be70486b573 /mm/huge_memory.c
parentmemcg: do not use vmalloc for mem_cgroup allocations (diff)
downloadlinux-e3bba3c3c90cd434c1ccb9e5dc704a96baf9541c.tar.xz
linux-e3bba3c3c90cd434c1ccb9e5dc704a96baf9541c.zip
fs/proc/page.c: add PageAnon check to surely detect thp
stable_page_flags() checks !PageHuge && PageTransCompound && PageLRU to know that a specified page is thp or not. But sometimes it's not enough and we fail to detect thp when the thp is on pagevec. This happens only for a few seconds after LRU list operations, but it makes it difficult to control our applications depending on this flag. So this patch adds another check PageAnon to detect thps on pagevec. It might not give the future extensibility for thp pagecache, but it's OK at least for now. Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Cc: David Rientjes <rientjes@google.com> Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/huge_memory.c')
0 files changed, 0 insertions, 0 deletions