linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -mm 0/7] mm/pagewalk: standardize current users, move pmd locking, apply to mincore
@ 2014-06-06 22:58 Naoya Horiguchi
  2014-06-06 22:58 ` [PATCH 1/7] mm/pagewalk: remove pgd_entry() and pud_entry() Naoya Horiguchi
                   ` (6 more replies)
  0 siblings, 7 replies; 18+ messages in thread
From: Naoya Horiguchi @ 2014-06-06 22:58 UTC (permalink / raw)
  To: linux-mm
  Cc: Dave Hansen, Andrew Morton, Hugh Dickins, Kirill A. Shutemov,
	linux-kernel

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@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2014-06-16 21:15 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-06 22:58 [PATCH -mm 0/7] mm/pagewalk: standardize current users, move pmd locking, apply to mincore Naoya Horiguchi
2014-06-06 22:58 ` [PATCH 1/7] mm/pagewalk: remove pgd_entry() and pud_entry() Naoya Horiguchi
2014-06-06 22:58 ` [PATCH 2/7] mm/pagewalk: replace mm_walk->skip with more general mm_walk->control Naoya Horiguchi
2014-06-09 20:01   ` Dave Hansen
2014-06-09 21:29     ` Naoya Horiguchi
     [not found]     ` <1402349339-n9udlcv2@n-horiguchi@ah.jp.nec.com>
2014-06-09 21:51       ` Dave Hansen
2014-06-06 22:58 ` [PATCH 3/7] madvise: cleanup swapin_walk_pmd_entry() Naoya Horiguchi
2014-06-06 22:58 ` [PATCH 4/7] memcg: separate mem_cgroup_move_charge_pte_range() Naoya Horiguchi
2014-06-06 22:58 ` [PATCH 5/7] arch/powerpc/mm/subpage-prot.c: cleanup subpage_walk_pmd_entry() Naoya Horiguchi
2014-06-06 22:58 ` [PATCH 6/7] mm/pagewalk: move pmd_trans_huge_lock() from callbacks to common code Naoya Horiguchi
2014-06-09 20:04   ` Dave Hansen
2014-06-09 21:35     ` Naoya Horiguchi
2014-06-06 22:58 ` [PATCH 7/7] mincore: apply page table walker on do_mincore() Naoya Horiguchi
2014-06-12 22:04   ` Andrew Morton
2014-06-12 23:33     ` Naoya Horiguchi
2014-06-16 15:24   ` Sasha Levin
2014-06-16 16:44     ` Naoya Horiguchi
2014-06-16 21:14       ` Sasha Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).