summaryrefslogtreecommitdiff
path: root/security/inode.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2015-11-05 18:46:14 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-05 19:34:48 -0800
commitcbfb479809c1b8d871cb9a31832e065e900a24c1 (patch)
tree5c349d5b3c1e08ad23ef24365656e16cb553fa3b /security/inode.c
parentb23afb93d317c65cef553b804f08dec8a7a0f7e1 (diff)
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>
Diffstat (limited to 'security/inode.c')
0 files changed, 0 insertions, 0 deletions