diff options
author | Mina Almasry <almasrymina@google.com> | 2020-04-01 21:11:31 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-04-02 09:35:32 -0700 |
commit | 08cf9faf7558020aed6a0da5810b824b07139dfa (patch) | |
tree | 7532a1f0685745ddfa54d404fc72b4cf2bad7084 /tools/leds | |
parent | 075a61d07a8eca2fe980acd94105ed5d6429c55d (diff) | |
download | linux-08cf9faf7558020aed6a0da5810b824b07139dfa.tar.gz linux-08cf9faf7558020aed6a0da5810b824b07139dfa.tar.bz2 linux-08cf9faf7558020aed6a0da5810b824b07139dfa.zip |
hugetlb_cgroup: support noreserve mappings
Support MAP_NORESERVE accounting as part of the new counter.
For each hugepage allocation, at allocation time we check if there is a
reservation for this allocation or not. If there is a reservation for
this allocation, then this allocation was charged at reservation time, and
we don't re-account it. If there is no reserevation for this allocation,
we charge the appropriate hugetlb_cgroup.
The hugetlb_cgroup to uncharge for this allocation is stored in
page[3].private. We use new APIs added in an earlier patch to set this
pointer.
Signed-off-by: Mina Almasry <almasrymina@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Greg Thelen <gthelen@google.com>
Cc: Sandipan Das <sandipan@linux.ibm.com>
Cc: Shakeel Butt <shakeelb@google.com>
Cc: Shuah Khan <shuah@kernel.org>
Link: http://lkml.kernel.org/r/20200211213128.73302-6-almasrymina@google.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/leds')
0 files changed, 0 insertions, 0 deletions