[PATCH 0/3] mm/hugetlb: A fix and some cleanups

Joshua Hahn posted 3 patches 3 weeks, 2 days ago
mm/hugetlb.c | 39 ++++++++++++++++++++++++++-------------
1 file changed, 26 insertions(+), 13 deletions(-)
[PATCH 0/3] mm/hugetlb: A fix and some cleanups
Posted by Joshua Hahn 3 weeks, 2 days ago
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