]> Git Repo - linux.git/commit
memcg, THP, swap: make mem_cgroup_swapout() support THP
authorHuang Ying <[email protected]>
Wed, 6 Sep 2017 23:22:45 +0000 (16:22 -0700)
committerLinus Torvalds <[email protected]>
Thu, 7 Sep 2017 00:27:28 +0000 (17:27 -0700)
commitd6810d730022016d9c0f389452b86b035dba1492
tree985ca10bca05f4507e1952ad563fbfa3a0036ea0
parentabe2895b76047bf5430990f2584cd91f76692218
memcg, THP, swap: make mem_cgroup_swapout() support THP

This patch makes mem_cgroup_swapout() works for the transparent huge
page (THP).  Which will move the memory cgroup charge from memory to
swap for a THP.

This will be used for the THP swap support.  Where a THP may be swapped
out as a whole to a set of (HPAGE_PMD_NR) continuous swap slots on the
swap device.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: "Huang, Ying" <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: "Kirill A . Shutemov" <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Ross Zwisler <[email protected]> [for brd.c, zram_drv.c, pmem.c]
Cc: Shaohua Li <[email protected]>
Cc: Vishal L Verma <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memcontrol.c
This page took 0.055866 seconds and 4 git commands to generate.