diff options
author | Vladimir Davydov <vdavydov@virtuozzo.com> | 2016-01-15 00:18:18 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-15 01:00:49 +0100 |
commit | 37f08dda29dac8a595999b8d3eaa9bf0f763dd9d (patch) | |
tree | c4d80b7c03cb495ae11b523e7ff187b355c9f35e /fs/minix/inode.c | |
parent | slab: add SLAB_ACCOUNT flag (diff) | |
download | linux-37f08dda29dac8a595999b8d3eaa9bf0f763dd9d.tar.xz linux-37f08dda29dac8a595999b8d3eaa9bf0f763dd9d.zip |
vmalloc: allow to account vmalloc to memcg
Make vmalloc family functions allocate vmalloc area pages with
alloc_kmem_pages so that if __GFP_ACCOUNT is set they will be accounted
to memcg. This is needed, at least, to account alloc_fdmem allocations.
Signed-off-by: Vladimir Davydov <vdavydov@virtuozzo.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Greg Thelen <gthelen@google.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/minix/inode.c')
0 files changed, 0 insertions, 0 deletions