mm-rmap-fix-huge-file-mmap-accounting-in-the-memcg-stats.patch removed from -mm tree
The patch titled
Subject: mm: rmap: fix huge file mmap accounting in the memcg stats
has been removed from the -mm tree. Its filename was
mm-rmap-fix-huge-file-mmap-accounting-in-the-memcg-stats.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Johannes Weiner <[email protected]>
Subject: 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.
---
include/linux/memcontrol.h | 6 ++++++ mm/rmap.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-)
include/linux/memcontrol.h renamed from include/linux/memcontrol.h~mm-rmap-fix-huge-file-mmap-accounting-in-the-memcg-stats +6 -0
@@ -740,6 +740,12 @@ static inline bool mem_cgroup_oom_synchrreturn false; } +static inline void mem_cgroup_update_page_stat (struct page *page, +enum mem_cgroup_stat_index idx, +int nr) +{ +} +static inline void mem_cgroup_inc_page_stat (struct page *page,enum mem_cgroup_stat_index idx) {
mm/rmap.c renamed from mm/rmap.c~mm-rmap-fix-huge-file-mmap-accounting-in-the-memcg-stats +2 -2
@@ -1159,7 +1159,7 @@ void page_add_file_rmap(struct page *pag goto out; }__mod_node_page_state (page_pgdat (page),NR_FILE_MAPPED , nr); -mem_cgroup_inc_page_stat (page,MEM_CGROUP_STAT_FILE_MAPPED ); +mem_cgroup_update_page_stat (page,MEM_CGROUP_STAT_FILE_MAPPED , nr); out:unlock_page_memcg (page); }
@@ -1199,7 +1199,7 @@ static void page_remove_file_rmap(struct* pte lock(a spinlock) is held, which implies preemption disabled. */ __mod_node_page_state (page_pgdat (page),NR_FILE_MAPPED , -nr); -mem_cgroup_dec_page_stat (page,MEM_CGROUP_STAT_FILE_MAPPED ); +mem_cgroup_update_page_stat (page,MEM_CGROUP_STAT_FILE_MAPPED , -nr);if (unlikely (PageMlocked (page)))clear_page_mlock (page);
_
Patches currently in -mm which might be from [email protected] are
mm-fix-100%-cpu-kswapd-busyloop-on-unreclaimable-nodes.patch mm-fix-100%-cpu-kswapd-busyloop-on-unreclaimable-nodes-fix.patch mm-fix-check-for-reclaimable-pages-in-pf_memalloc-reclaim-throttling.patch mm-remove-seemingly-spurious-reclaimability-check-from-laptop_mode-gating.patch mm-remove-unnecessary-reclaimability-check-from-numa-balancing-target.patch mm-dont-avoid-high-priority-reclaim-on-unreclaimable-nodes.patch mm-dont-avoid-high-priority-reclaim-on-memcg-limit-reclaim.patch mm-delete-nr_pages_scanned-and-pgdat_reclaimable.patch revert-mm-vmscan-account-for-skipped-pages-as-a-partial-scan.patch mm-remove-unnecessary-back-off-function-when-retrying-page-reclaim.patch mm-memcontrol-provide-shmem-statistics.patch mm-page_alloc-__gfp_nowarn-shouldnt-suppress-stall-warnings.patch