mbox series

[0/3] mm/hugetlb: fix /sys and /proc fs dealing with persistent hugepages

Message ID 20230730125156.207301-1-xueshi.hu@smartx.com (mailing list archive)
Headers show
Series mm/hugetlb: fix /sys and /proc fs dealing with persistent hugepages | expand

Message

Xueshi Hu July 30, 2023, 12:51 p.m. UTC
Hi,

The interfaces provided by /sys and /proc for handling huge pages do not 
adequately address the meaning of persistent. Luckily, this can be easily
resolved with minor modifications. Additionally, code relevant with 
hstate:max_huge_pages can be simplified.

Thanks,
Hu

Xueshi Hu (3):
  mm/hugetlb: fix the inconsistency of /proc/sys/vm/nr_huge_pages
  mm/hugeltb: clean up hstate::max_huge_pages
  mm/hugeltb: fix nodes huge page allocation when there are surplus
    pages

 fs/hugetlbfs/inode.c |  2 +-
 mm/hugetlb.c         | 30 +++++++++---------------------
 2 files changed, 10 insertions(+), 22 deletions(-)