]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/hugetlb: unify restore reserve accounting for new allocations
authorPeter Xu <peterx@redhat.com>
Tue, 7 Jan 2025 20:40:02 +0000 (15:40 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 26 Jan 2025 04:22:31 +0000 (20:22 -0800)
commitf931af2e41ab406e7fc3063ba5a73b536779006e
tree9ab1b7f2c4371e1d6774adb66052bfeeceb42c23
parent72d8f72631d278c7003defbe3fe88fe5332822f8
mm/hugetlb: unify restore reserve accounting for new allocations

Either hugetlb pages dequeued from hstate, or newly allocated from buddy,
would require restore-reserve accounting to be managed properly.  Merge
the two paths on it.  Add a small comment to make it slightly nicer.

Link: https://lkml.kernel.org/r/20250107204002.2683356-8-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Cc: Ackerley Tng <ackerleytng@google.com>
Cc: Breno Leitao <leitao@debian.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Naoya Horiguchi <nao.horiguchi@gmail.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Rik van Riel <riel@surriel.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c