Skip to content

secretmem: optimize page_is_secretmem()

Mike Rapoport linux-api linux-arch linux-arm-kernel linux-fsdevel linux-kselftest linux-mm linux-nvdimm linux-riscv lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 3 repliesIn review
  2. v22 patches 3 repliesSuperseded
  3. v11 patch 11 repliesSuperseded

Changes in v3 from the cover letter

* add missing put_compound_head() if we are to return NULL from gup_page_range(), thanks David.
* add unlikely() to test for page_is_secretmem.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2secretmem/gup: don't check if page is secretmem without referencemm/gup.c+5 -31 reply
2/2secretmem: optimize page_is_secretmem()include/linux/secretmem.h mm/secretmem.c+26 -122 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchDavid Hildenbrand
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] secretmem: optimize page_is_secretmem()

From: Mike Rapoport <[email protected]>

Hi,

This is an updated version of page_is_secretmem() changes. This is based on v5.12-rc7-mmots-2021-04-15-16-28.

@Andrew, please let me know if you'd like me to rebase it differently or resend the entire set.

v3:
* add missing put_compound_head() if we are to return NULL from gup_page_range(), thanks David.
* add unlikely() to test for page_is_secretmem.

v2:
* move the check for secretmem page in gup_pte_range after we get a reference to the page, per Matthew.

Mike Rapoport (2):
secretmem/gup: don't check if page is secretmem without reference
secretmem: optimize page_is_secretmem()

 include/linux/secretmem.h | 26 +++++++++++++++++++++++++-
 mm/gup.c                  |  6 +++---
 mm/secretmem.c            | 12 +-----------
 3 files changed, 29 insertions(+), 15 deletions(-)
Signature · 14 lines
2.28.0


Mike Rapoport (2):
  secretmem/gup: don't check if page is secretmem without reference
  secretmem: optimize page_is_secretmem()

 include/linux/secretmem.h | 26 +++++++++++++++++++++++++-
 mm/gup.c                  |  8 +++++---
 mm/secretmem.c            | 12 +-----------
 3 files changed, 31 insertions(+), 15 deletions(-)

-- 
2.28.0