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(-) -- 2.40.1