Skip to content

A few cleanup patches for hugetlb

Miaohe Lin linux-mm lkml 2 versions – Applied

Status from this message: [merged mm-stable] hugetlb-make-hugetlb-depends-on-sysfs-or-sysctl.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 0 repliesApplied 10/10
  2. v16 patches 11 repliesSuperseded 5 of 6 applied

Changes in v2 from the cover letter

collect Reviewed-by tags per Muchun. Thanks!
tweak the commit log in 3/10
change to add a comment for SetHPageVmemmapOptimized() in 8/10 make hugetlb depends on SYSFS || SYSCTL in 10/10
---
Miaohe Lin (10):
hugetlb: make hugetlb_cma_check() static
hugetlb: Use helper macro SZ_1K
hugetlb: Use LIST_HEAD() to define a list head
hugetlb: Use sizeof() to get the array size
hugetlb: Use helper {huge_pte|pmd}_lock()
hugetlb: pass NULL to kobj_to_hstate() if nid is unused
hugetlb: kill hugetlbfs_pagecache_page()
hugetlb: add comment for subtle SetHPageVmemmapOptimized()
hugetlb: remove meaningless BUG_ON(huge_pte_none())
hugetlb: make hugetlb depends on SYSFS or SYSCTL

Patches in v2 All 10 applied

#Subject and filesSizeRepliesApplied
1/10hugetlb: make hugetlb_cma_check() staticinclude/linux/hugetlb.h mm/hugetlb.c+9 -50 repliesApplied
2/10hugetlb: Use helper macro SZ_1Kmm/hugetlb.c+1 -10 repliesApplied
3/10hugetlb: Use LIST_HEAD() to define a list headmm/hugetlb.c+2 -50 repliesApplied
4/10hugetlb: Use sizeof() to get the array sizemm/hugetlb.c+2 -20 repliesApplied
5/10hugetlb: Use helper {huge_pte|pmd}_lock()mm/hugetlb.c+2 -40 repliesApplied
6/10hugetlb: pass NULL to kobj_to_hstate() if nid is unusedmm/hugetlb.c+2 -40 repliesApplied
7/10hugetlb: kill hugetlbfs_pagecache_page()mm/hugetlb.c+1 -140 repliesApplied
8/10hugetlb: add comment for subtle SetHPageVmemmapOptimized()mm/hugetlb.c+4 -00 repliesApplied
9/10hugetlb: remove meaningless BUG_ON(huge_pte_none())mm/hugetlb.c+0 -10 repliesApplied
10/10hugetlb: make hugetlb depends on SYSFS or SYSCTLfs/Kconfig+1 -00 repliesApplied

Reviews trailers per patch

9 of 10 patches have a Reviewed-by or Acked-by.

PatchMuchun Song
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10

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

Read the v2 thread

Cover letter [PATCH v2 00/10] A few cleanup patches for hugetlb

Hi everyone,
This series contains a few cleanup patches to use helper functions to simplify the codes, remove unneeded nid parameter and so on. More details can be found in the respective changelogs.
Thanks!

---
v2:
collect Reviewed-by tags per Muchun. Thanks!
tweak the commit log in 3/10
change to add a comment for SetHPageVmemmapOptimized() in 8/10 make hugetlb depends on SYSFS || SYSCTL in 10/10
---
Miaohe Lin (10):
hugetlb: make hugetlb_cma_check() static
hugetlb: Use helper macro SZ_1K
hugetlb: Use LIST_HEAD() to define a list head
hugetlb: Use sizeof() to get the array size
hugetlb: Use helper {huge_pte|pmd}_lock()
hugetlb: pass NULL to kobj_to_hstate() if nid is unused
hugetlb: kill hugetlbfs_pagecache_page()
hugetlb: add comment for subtle SetHPageVmemmapOptimized()
hugetlb: remove meaningless BUG_ON(huge_pte_none())
hugetlb: make hugetlb depends on SYSFS or SYSCTL

 fs/Kconfig              |  1 +
 include/linux/hugetlb.h |  4 ---
 mm/hugetlb.c            | 55 +++++++++++++++++------------------------
 3 files changed, 24 insertions(+), 36 deletions(-)
Signature · 1 line
2.23.0