linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] mm/hugetlb: A fix and some cleanups
@ 2026-01-15 18:14 Joshua Hahn
  2026-01-15 18:14 ` [PATCH 1/3] mm/hugetlb: Restore failed global reservations to subpool Joshua Hahn
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Joshua Hahn @ 2026-01-15 18:14 UTC (permalink / raw)
  To: Andrew Morton
  Cc: David Hildenbrand, Muchun Song, Oscar Salvador, linux-kernel,
	linux-mm, kernel-team

As the subject suggests, a fix and some cleanup patches.

The first patch fixes a hugetlb accounting error that would leave
hugetlb subpools with an elevated used_hpages count, if a reservation
attempt passes the subpool limit check but fails to acquire pages from
the global pool. It was introduced in a833a693a490: ("mm: hugetlb: fix
incorrect fallback for subpool"), which itself was a fix for a hugetlb
reservation accounting error.

The last two patches are some cleanup patches that I've been holding
onto for a while that I didn't feel was big enough to send on their own.
No functional changes intended for the last two.

Joshua Hahn (3):
  mm/hugetlb: Restore failed global reservations to subpool
  mm/hugetlb: Remove unnecessary if condition
  mm/hugetlb: Enforce brace style

 mm/hugetlb.c | 39 ++++++++++++++++++++++++++-------------
 1 file changed, 26 insertions(+), 13 deletions(-)


base-commit: d70f9612414bd3ed6bb709ccbeb4206d1a1927a5
-- 
2.47.3


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2026-01-16 16:45 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-15 18:14 [PATCH 0/3] mm/hugetlb: A fix and some cleanups Joshua Hahn
2026-01-15 18:14 ` [PATCH 1/3] mm/hugetlb: Restore failed global reservations to subpool Joshua Hahn
2026-01-15 19:19   ` Andrew Morton
2026-01-15 19:45     ` Joshua Hahn
2026-01-15 18:14 ` [PATCH 2/3] mm/hugetlb: Remove unnecessary if condition Joshua Hahn
2026-01-15 20:14   ` David Hildenbrand (Red Hat)
2026-01-15 21:10     ` Joshua Hahn
2026-01-15 21:59       ` Andrew Morton
2026-01-15 22:04         ` Joshua Hahn
2026-01-16  1:39   ` SeongJae Park
2026-01-16 16:45     ` Joshua Hahn
2026-01-15 18:14 ` [PATCH 3/3] mm/hugetlb: Enforce brace style Joshua Hahn
2026-01-15 20:10   ` David Hildenbrand (Red Hat)
2026-01-15 21:14     ` Joshua Hahn
2026-01-15 21:16       ` David Hildenbrand (Red Hat)
2026-01-16  1:54         ` SeongJae Park
2026-01-15 21:57       ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox