]> git.baikalelectronics.ru Git - kernel.git/commit
memcg: collect kmem bypass conditions into __memcg_kmem_bypass()
authorTejun Heo <tj@kernel.org>
Fri, 6 Nov 2015 02:46:14 +0000 (18:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Nov 2015 03:34:48 +0000 (19:34 -0800)
commit08cf6968e6464a0d76ed467bd57e75550e46466a
tree5c349d5b3c1e08ad23ef24365656e16cb553fa3b
parent946317bb33bd46b8afff359a0a7911a11bef54cd
memcg: collect kmem bypass conditions into __memcg_kmem_bypass()

memcg_kmem_newpage_charge() and memcg_kmem_get_cache() are testing the
same series of conditions to decide whether to bypass kmem accounting.
Collect the tests into __memcg_kmem_bypass().

This is pure refactoring.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Vladimir Davydov <vdavydov@parallels.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/memcontrol.h