linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Remove/consolidate calls to find_get_entry
@ 2020-07-10 20:26 Matthew Wilcox (Oracle)
  2020-07-10 20:26 ` [PATCH 1/4] mm: Factor find_get_swap_page out of mincore_page Matthew Wilcox (Oracle)
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Matthew Wilcox (Oracle) @ 2020-07-10 20:26 UTC (permalink / raw)
  To: linux-mm; +Cc: Matthew Wilcox (Oracle)

As part of the THP work, I audited the callers of find_get_entry() and
found one bug and three opportunities for optimisation.  Patch 2 is the
bugfix as it depends on using the same code as mincore_page().

I don't really like having find_get_swap_page() in mincore.c, but I
can't find anywhere better to put it.

Matthew Wilcox (Oracle) (4):
  mm: Factor find_get_swap_page out of mincore_page
  mm: Use find_get_swap_page in memcontrol
  mm: Optimise madvise WILLNEED
  proc: Optimise smaps for shmem entries

 fs/proc/task_mmu.c      |  8 +-----
 include/linux/pagemap.h |  1 +
 mm/madvise.c            | 20 +++++++-------
 mm/memcontrol.c         | 25 ++---------------
 mm/mincore.c            | 59 +++++++++++++++++++++++------------------
 5 files changed, 47 insertions(+), 66 deletions(-)

-- 
2.27.0



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

end of thread, other threads:[~2020-07-11  3:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-10 20:26 [PATCH 0/4] Remove/consolidate calls to find_get_entry Matthew Wilcox (Oracle)
2020-07-10 20:26 ` [PATCH 1/4] mm: Factor find_get_swap_page out of mincore_page Matthew Wilcox (Oracle)
2020-07-10 20:26 ` [PATCH 2/4] mm: Use find_get_swap_page in memcontrol Matthew Wilcox (Oracle)
2020-07-10 20:26 ` [PATCH 3/4] mm: Optimise madvise WILLNEED Matthew Wilcox (Oracle)
2020-07-10 20:26 ` [PATCH 4/4] proc: Optimise smaps for shmem entries Matthew Wilcox (Oracle)
2020-07-11  0:15 ` [PATCH 0/4] Remove/consolidate calls to find_get_entry William Kucharski
2020-07-11  3:31 ` [PATCH 5/4] mm: Return head pages from find_get_entry Matthew Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox