[PATCH 1/3] mm/swap: support per memory cgroup swapfiles

2014-03-21 Thread Yu Zhao
From: Suleiman Souhlal This patch adds support for per memory cgroup swap file. The swap file is marked private in swapon() with a new flag SWAP_FLAG_PRIVATE becasue only the memory cgroup (and its children) that owns it can use it (in the case of the children that don't own any swap files, they

[PATCH 1/3] mm/swap: support per memory cgroup swapfiles

2014-03-21 Thread Yu Zhao
From: Suleiman Souhlal sulei...@google.com This patch adds support for per memory cgroup swap file. The swap file is marked private in swapon() with a new flag SWAP_FLAG_PRIVATE becasue only the memory cgroup (and its children) that owns it can use it (in the case of the children that don't own