linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] mm/smaps: Fixes and optimizations on shmem swap handling
@ 2021-09-17 16:47 Peter Xu
  2021-09-17 16:47 ` [PATCH 1/3] mm/smaps: Fix shmem pte hole swap calculation Peter Xu
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Peter Xu @ 2021-09-17 16:47 UTC (permalink / raw)
  To: linux-mm, linux-kernel
  Cc: Vlastimil Babka, Andrew Morton, Hugh Dickins, Andrea Arcangeli,
	peterx, Matthew Wilcox

This series grows from the patch previously posted here:

  [PATCH] mm/smaps: Use vma->vm_pgoff directly when counting partial swap
  https://lore.kernel.org/lkml/20210916215839.95177-1-peterx@redhat.com/

Vlastimil reported a bug that is even more important to fix than the cleanup,
so I put it as patch 1 here.  There's a test program we can use to verify the
bug before/after the patch.  I used the same program to test patch 2/3 because
it covers walking shmem swap both in page cache and in pgtables.

Patch 2 is the original patch, though with a tiny touchup as Vlastimil
suggested.

Patch 3 is a further cleanup of the shmem swap logic, hopefully make it even
cleaner.

Please review, thanks.

Peter Xu (3):
  mm/smaps: Fix shmem pte hole swap calculation
  mm/smaps: Use vma->vm_pgoff directly when counting partial swap
  mm/smaps: Simplify shmem handling of pte holes

 fs/proc/task_mmu.c | 28 ++++++++++++++++------------
 mm/shmem.c         |  5 ++---
 2 files changed, 18 insertions(+), 15 deletions(-)

-- 
2.31.1


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

end of thread, other threads:[~2021-10-05 14:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-17 16:47 [PATCH 0/3] mm/smaps: Fixes and optimizations on shmem swap handling Peter Xu
2021-09-17 16:47 ` [PATCH 1/3] mm/smaps: Fix shmem pte hole swap calculation Peter Xu
2021-09-22 10:40   ` Vlastimil Babka
2021-09-17 16:47 ` [PATCH 2/3] mm/smaps: Use vma->vm_pgoff directly when counting partial swap Peter Xu
2021-09-22 10:41   ` Vlastimil Babka
2021-09-17 16:47 ` [PATCH 3/3] mm/smaps: Simplify shmem handling of pte holes Peter Xu
2021-10-05 11:15   ` Vlastimil Babka
2021-10-05 14:40     ` Peter Xu

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).