Skip to content

Some cleanups for hugetlb

Miaohe Lin linux-mm lkml 1 version Applied

Status from this message: [merged] mm-hugetlb-avoid-calculating-fault_mutex_hash-in-truncate_op-case.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 7 repliesApplied 5/5

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5mm/hugetlb: use some helper functions to cleanup codefs/hugetlbfs/inode.c mm/hugetlb.c+4 -40 repliesApplied
2/5mm/hugetlb: optimize the surplus state transfer code in move_hugetlb_state()mm/hugetlb.c+6 -00 repliesApplied
3/5hugetlb_cgroup: remove unnecessary VM_BUG_ON_PAGE in hugetlb_cgroup_migrate()mm/hugetlb_cgroup.c+0 -11 replyApplied
4/5mm/hugetlb: simplify the code when alloc_huge_page() failed in hugetlb_no_page()mm/hugetlb.c+3 -62 repliesApplied
5/5mm/hugetlb: avoid calculating fault_mutex_hash in truncate_op casefs/hugetlbfs/inode.c+2 -24 repliesApplied

Reviews trailers per patch

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

PatchMike Kravetz
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

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

Read the v1 thread

Cover letter [PATCH 0/5] Some cleanups for hugetlb

Hi all,
This series contains cleanups to remove unnecessary VM_BUG_ON_PAGE, use helper function and so on. I also collect some previous patches into this series in case they are forgotten.
More details can be found in the respective changelogs. Thanks!

Miaohe Lin (5):
mm/hugetlb: use some helper functions to cleanup code mm/hugetlb: optimize the surplus state transfer code in
move_hugetlb_state()
hugetlb_cgroup: remove unnecessary VM_BUG_ON_PAGE in
hugetlb_cgroup_migrate()
mm/hugetlb: simplify the code when alloc_huge_page() failed in
hugetlb_no_page()
mm/hugetlb: avoid calculating fault_mutex_hash in truncate_op case

 fs/hugetlbfs/inode.c |  6 +++---
 mm/hugetlb.c         | 21 ++++++++++++---------
 mm/hugetlb_cgroup.c  |  1 -
 3 files changed, 15 insertions(+), 13 deletions(-)
Signature · 1 line
2.19.1