All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org,
	David Hildenbrand <david@redhat.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Matthew Wilcox <willy@infradead.org>,
	Peter Xu <peterx@redhat.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <will@kernel.org>, Hugh Dickins <hughd@google.com>,
	Seth Jennings <sjenning@redhat.com>,
	Dan Streetman <ddstreet@ieee.org>,
	Vitaly Wool <vitaly.wool@konsulko.com>
Subject: [PATCH mm-unstable v1 0/4] mm/swap: stop using page->private on tail pages for THP_SWAP + cleanups
Date: Mon, 21 Aug 2023 18:08:45 +0200	[thread overview]
Message-ID: <20230821160849.531668-1-david@redhat.com> (raw)

This series stops using page->private on tail pages for THP_SWAP,
replaces folio->private by folio->swap for swapcache folios, and starts
using "new_folio" for tail pages that we are splitting to remove the usage
of page->private for swapcache handling completely.

@Willy, I added your SOB on patch #2 from [1], hoping that's ok.

[1] https://lore.kernel.org/all/ZN1IH/8JxkkOU5Ec@casper.infradead.org/

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Peter Xu <peterx@redhat.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: Seth Jennings <sjenning@redhat.com>
Cc: Dan Streetman <ddstreet@ieee.org>
Cc: Vitaly Wool <vitaly.wool@konsulko.com>

David Hildenbrand (3):
  mm/swap: stop using page->private on tail pages for THP_SWAP
  mm/swap: inline folio_set_swap_entry() and folio_swap_entry()
  mm/huge_memory: work on folio->swap instead of page->private when
    splitting folio

Matthew Wilcox (1):
  mm/swap: use dedicated entry for swap in folio

 arch/arm64/mm/mteswap.c  |  5 +++--
 include/linux/mm_types.h | 35 ++++++++++++++---------------------
 include/linux/swap.h     | 12 +++++-------
 mm/huge_memory.c         | 40 +++++++++++++++++++---------------------
 mm/memory.c              |  4 ++--
 mm/rmap.c                |  2 +-
 mm/shmem.c               |  6 +++---
 mm/swap_state.c          |  6 +++---
 mm/swapfile.c            |  6 +++---
 mm/util.c                |  2 +-
 mm/vmscan.c              |  2 +-
 mm/zswap.c               |  4 ++--
 12 files changed, 57 insertions(+), 67 deletions(-)

-- 
2.41.0


WARNING: multiple messages have this Message-ID (diff)
From: David Hildenbrand <david@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org,
	David Hildenbrand <david@redhat.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Matthew Wilcox <willy@infradead.org>,
	Peter Xu <peterx@redhat.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <will@kernel.org>, Hugh Dickins <hughd@google.com>,
	Seth Jennings <sjenning@redhat.com>,
	Dan Streetman <ddstreet@ieee.org>,
	Vitaly Wool <vitaly.wool@konsulko.com>
Subject: [PATCH mm-unstable v1 0/4] mm/swap: stop using page->private on tail pages for THP_SWAP + cleanups
Date: Mon, 21 Aug 2023 18:08:45 +0200	[thread overview]
Message-ID: <20230821160849.531668-1-david@redhat.com> (raw)

This series stops using page->private on tail pages for THP_SWAP,
replaces folio->private by folio->swap for swapcache folios, and starts
using "new_folio" for tail pages that we are splitting to remove the usage
of page->private for swapcache handling completely.

@Willy, I added your SOB on patch #2 from [1], hoping that's ok.

[1] https://lore.kernel.org/all/ZN1IH/8JxkkOU5Ec@casper.infradead.org/

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Peter Xu <peterx@redhat.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: Seth Jennings <sjenning@redhat.com>
Cc: Dan Streetman <ddstreet@ieee.org>
Cc: Vitaly Wool <vitaly.wool@konsulko.com>

David Hildenbrand (3):
  mm/swap: stop using page->private on tail pages for THP_SWAP
  mm/swap: inline folio_set_swap_entry() and folio_swap_entry()
  mm/huge_memory: work on folio->swap instead of page->private when
    splitting folio

Matthew Wilcox (1):
  mm/swap: use dedicated entry for swap in folio

 arch/arm64/mm/mteswap.c  |  5 +++--
 include/linux/mm_types.h | 35 ++++++++++++++---------------------
 include/linux/swap.h     | 12 +++++-------
 mm/huge_memory.c         | 40 +++++++++++++++++++---------------------
 mm/memory.c              |  4 ++--
 mm/rmap.c                |  2 +-
 mm/shmem.c               |  6 +++---
 mm/swap_state.c          |  6 +++---
 mm/swapfile.c            |  6 +++---
 mm/util.c                |  2 +-
 mm/vmscan.c              |  2 +-
 mm/zswap.c               |  4 ++--
 12 files changed, 57 insertions(+), 67 deletions(-)

-- 
2.41.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

             reply	other threads:[~2023-08-21 16:10 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-21 16:08 David Hildenbrand [this message]
2023-08-21 16:08 ` [PATCH mm-unstable v1 0/4] mm/swap: stop using page->private on tail pages for THP_SWAP + cleanups David Hildenbrand
2023-08-21 16:08 ` [PATCH mm-unstable v1 1/4] mm/swap: stop using page->private on tail pages for THP_SWAP David Hildenbrand
2023-08-21 16:08   ` David Hildenbrand
2023-08-22 16:24   ` Catalin Marinas
2023-08-22 16:24     ` Catalin Marinas
2023-08-22 17:00   ` Yosry Ahmed
2023-08-22 17:00     ` Yosry Ahmed
2023-08-22 17:14     ` David Hildenbrand
2023-08-22 17:14       ` David Hildenbrand
2023-08-23 12:15   ` David Hildenbrand
2023-08-23 12:15     ` David Hildenbrand
2023-08-23 15:12   ` Yosry Ahmed
2023-08-23 15:12     ` Yosry Ahmed
2023-08-23 15:17     ` David Hildenbrand
2023-08-23 15:17       ` David Hildenbrand
2023-08-23 15:21       ` Yosry Ahmed
2023-08-23 15:21         ` Yosry Ahmed
2023-08-23 15:26         ` David Hildenbrand
2023-08-23 15:26           ` David Hildenbrand
2023-08-23 15:31           ` Yosry Ahmed
2023-08-23 15:31             ` Yosry Ahmed
2023-08-21 16:08 ` [PATCH mm-unstable v1 2/4] mm/swap: use dedicated entry for swap in folio David Hildenbrand
2023-08-21 16:08   ` David Hildenbrand
2023-08-23 13:15   ` Chris Li
2023-08-23 13:15     ` Chris Li
2023-08-21 16:08 ` [PATCH mm-unstable v1 3/4] mm/swap: inline folio_set_swap_entry() and folio_swap_entry() David Hildenbrand
2023-08-21 16:08   ` David Hildenbrand
2023-08-23 13:15   ` Chris Li
2023-08-23 13:15     ` Chris Li
2023-08-21 16:08 ` [PATCH mm-unstable v1 4/4] mm/huge_memory: work on folio->swap instead of page->private when splitting folio David Hildenbrand
2023-08-21 16:08   ` David Hildenbrand
2023-08-23 13:16   ` Chris Li
2023-08-23 13:16     ` Chris Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230821160849.531668-1-david@redhat.com \
    --to=david@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=catalin.marinas@arm.com \
    --cc=ddstreet@ieee.org \
    --cc=hughd@google.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=peterx@redhat.com \
    --cc=sjenning@redhat.com \
    --cc=vitaly.wool@konsulko.com \
    --cc=will@kernel.org \
    --cc=willy@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.