Skip to content

Some cleanups for shmem

Baolin Wang linux-mm lkml 3 versions – Applied

Status from this message: [merged mm-stable] mm-shmem-move-shmem_huge_global_enabled-into-shmem_allowable_huge_orders.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesApplied 3/3
  2. v23 patches 10 repliesSuperseded
  3. v13 patches 1 replySuperseded

Changes in v3 from the cover letter

- Add reviewed tag from Ryan. Thanks.
- Pass vma instead of mm to shmem_huge_global_enabled(), per Ryan.

Patches in v3 All 3 applied

#Subject and filesSizeRepliesApplied
1/3mm: shmem: simplify the suitable huge orders validation for tmpfsmm/shmem.c+15 -240 repliesApplied
2/3mm: shmem: rename shmem_is_huge() to shmem_huge_global_enabled()include/linux/shmem_fs.h mm/huge_memory.c mm/shmem.c+16 -130 repliesApplied
3/3mm: shmem: move shmem_huge_global_enabled() into shmem_allowable_huge_orders()include/linux/shmem_fs.h mm/huge_memory.c mm/shmem.c+35 -360 repliesApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchRyan Roberts
1/3R-b
2/3R-b
3/3R-b

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/3] Some cleanups for shmem

Hi,

This series does some cleanups to reuse code, rename functions and simplify logic to make code more clear. No functional changes are expected.

Changes from v2:
- Add reviewed tag from Ryan. Thanks.
- Pass vma instead of mm to shmem_huge_global_enabled(), per Ryan.

Changes from v1:
- Add a dummy function in case CONFIG_TRANSPARENT_HUGEPAGE is not enabled, which fixes a building error reported by kernel test robot.

Baolin Wang (3):
mm: shmem: simplify the suitable huge orders validation for tmpfs
mm: shmem: rename shmem_is_huge() to shmem_huge_global_enabled()
mm: shmem: move shmem_huge_global_enabled() into
shmem_allowable_huge_orders()

 include/linux/shmem_fs.h | 11 +----
 mm/huge_memory.c         | 11 ++---
 mm/shmem.c               | 93 +++++++++++++++++++++-------------------
 3 files changed, 54 insertions(+), 61 deletions(-)
Signature · 1 line
2.39.3