* [nacked] mm-thp-update-mm_structs-mm_anonpages-stat-for-huge-zero-pages.patch removed from -mm tree
@ 2021-05-22 22:17 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2021-05-22 22:17 UTC (permalink / raw)
To: anshuman.khandual, hughd, mm-commits, ziy
The patch titled
Subject: mm/thp: update mm_struct's MM_ANONPAGES stat for huge zero pages
has been removed from the -mm tree. Its filename was
mm-thp-update-mm_structs-mm_anonpages-stat-for-huge-zero-pages.patch
This patch was dropped because it was nacked
------------------------------------------------------
From: Anshuman Khandual <anshuman.khandual@arm.com>
Subject: mm/thp: update mm_struct's MM_ANONPAGES stat for huge zero pages
Although the zero huge page is being shared across various processes, each
mapping needs to update its mm_struct's MM_ANONPAGES stat by HPAGE_PMD_NR
to be consistent. This just updates the stats in set_huge_zero_page()
after the mapping gets created and in zap_huge_pmd() when mapping gets
destroyed.
Link: https://lkml.kernel.org/r/1621313300-1118-1-git-send-email-anshuman.khandual@arm.com
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: Zi Yan<ziy@nvidia.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/huge_memory.c | 2 ++
1 file changed, 2 insertions(+)
--- a/mm/huge_memory.c~mm-thp-update-mm_structs-mm_anonpages-stat-for-huge-zero-pages
+++ a/mm/huge_memory.c
@@ -715,6 +715,7 @@ static void set_huge_zero_page(pgtable_t
if (pgtable)
pgtable_trans_huge_deposit(mm, pmd, pgtable);
set_pmd_at(mm, haddr, pmd, entry);
+ add_mm_counter(mm, MM_ANONPAGES, HPAGE_PMD_NR);
mm_inc_nr_ptes(mm);
}
@@ -1627,6 +1628,7 @@ int zap_huge_pmd(struct mmu_gather *tlb,
spin_unlock(ptl);
} else if (is_huge_zero_pmd(orig_pmd)) {
zap_deposited_table(tlb->mm, pmd);
+ add_mm_counter(tlb->mm, MM_ANONPAGES, -HPAGE_PMD_NR);
spin_unlock(ptl);
} else {
struct page *page = NULL;
_
Patches currently in -mm which might be from anshuman.khandual@arm.com are
mm-debug_vm_pgtable-ensure-thp-availability-via-has_transparent_hugepage.patch
mm-thp-make-alloc_split_ptlocks-dependent-on-use_split_pte_ptlocks.patch
mm-define-default-value-for-first_user_address.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-22 22:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-22 22:17 [nacked] mm-thp-update-mm_structs-mm_anonpages-stat-for-huge-zero-pages.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.