diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2017-04-01 00:11:50 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-04-01 02:13:30 +0200 |
commit | 553af430e7c981e6e8fa5007c5b7b5773acc63dd (patch) | |
tree | 9daa7662d639426e54773ddac03b69a6fc5a5d7d /fs/read_write.c | |
parent | mm: move mm_percpu_wq initialization earlier (diff) | |
download | linux-553af430e7c981e6e8fa5007c5b7b5773acc63dd.tar.xz linux-553af430e7c981e6e8fa5007c5b7b5773acc63dd.zip |
mm: rmap: fix huge file mmap accounting in the memcg stats
Huge pages are accounted as single units in the memcg's "file_mapped"
counter. Account the correct number of base pages, like we do in the
corresponding node counter.
Link: http://lkml.kernel.org/r/20170322005111.3156-1-hannes@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Cc: <stable@vger.kernel.org> [4.8+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/read_write.c')
0 files changed, 0 insertions, 0 deletions