diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2012-07-31 16:45:43 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-31 18:42:48 -0700 |
commit | 0435a2fdcb50f8e53a67e98c27708e5d9396b71a (patch) | |
tree | 9ef0a6916792f738056dda01b3d5b592fe6d5d44 /usr | |
parent | 24467cacc03cf8b156d4c6786697e5e5d13c9321 (diff) | |
download | op-kernel-dev-0435a2fdcb50f8e53a67e98c27708e5d9396b71a.zip op-kernel-dev-0435a2fdcb50f8e53a67e98c27708e5d9396b71a.tar.gz |
mm: memcg: split swapin charge function into private and public part
When shmem is charged upon swapin, it does not need to check twice whether
the memory controller is enabled.
Also, shmem pages do not have to be checked for everything that regular
anon pages have to be checked for, so let shmem use the internal version
directly and allow future patches to move around checks that are only
required when swapping in anon pages.
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: David Rientjes <rientjes@google.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Wanpeng Li <liwp.linux@gmail.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions