[PATCH -mm 0/7] mm/pagewalk: standardize current users, move pmd locking, apply to mincore

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here is the patchset on top of previous series (now in linux-mm.)
According to the previous discussion with Dave Hansen, all users of page
table walker are interested in running some code on the leaf entries
(i.e. pmd for thp, pte for normal pages. hugetlb needs special handling
due to arch dependnecy,) not on the "internal node" entries.
I think it's correct for now, but not sure for future users because
for example free_pgtable() seems to do freeing work on every level.

But obviously current code is not standardized (I mean that some users use
only pmd_entry() and do pte loop inside it, not using pte_entry(),) so
we can't move forward without cleaning up these, so this patchset does it.

Patch 1: just a cleanup
Patch 2: preparing walk control parameter
Patch 3-5: cleaning up current users
Patch 6: move pmd locking from each pmd_entry() to common code (affects all
         users implementing pmd_entry().)
Patch 7: apply page table walk to mincore()

This patchset is based on mmotm-2014-05-21-16-57.

Thanks,
Naoya Horiguchi
---
Summary:

Naoya Horiguchi (7):
      mm/pagewalk: remove pgd_entry() and pud_entry()
      mm/pagewalk: replace mm_walk->skip with more general mm_walk->control
      madvise: cleanup swapin_walk_pmd_entry()
      memcg: separate mem_cgroup_move_charge_pte_range()
      arch/powerpc/mm/subpage-prot.c: cleanup subpage_walk_pmd_entry()
      mm/pagewalk: move pmd_trans_huge_lock() from callbacks to common code
      mincore: apply page table walker on do_mincore()

 arch/powerpc/mm/subpage-prot.c |  12 ++-
 fs/proc/task_mmu.c             |  71 ++++++---------
 include/linux/mm.h             |  23 +++--
 mm/huge_memory.c               |  20 -----
 mm/madvise.c                   |  54 +++++-------
 mm/memcontrol.c                | 162 ++++++++++++++++------------------
 mm/mempolicy.c                 |   3 +-
 mm/mincore.c                   | 192 ++++++++++++++---------------------------
 mm/pagewalk.c                  | 127 +++++++++++++++------------
 9 files changed, 281 insertions(+), 383 deletions(-)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]