* [folded-merged] mm-hugetlbc-__unmap_hugepage_range-comment-cleanup.patch removed from -mm tree
@ 2025-05-13 6:42 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-05-13 6:42 UTC (permalink / raw)
To: mm-commits, willy, vishal.moola, sidhartha.kumar, osalvador,
muchun.song, fan.ni, david, akpm, akpm
The quilt patch titled
Subject: mm/hugetlb.c: __unmap_hugepage_range(): comment cleanup
has been removed from the -mm tree. Its filename was
mm-hugetlbc-__unmap_hugepage_range-comment-cleanup.patch
This patch was dropped because it was folded into mm-kmemleak-mark-variables-as-__read_mostly.patch
------------------------------------------------------
From: Andrew Morton <akpm@linux-foundation.org>
Subject: mm/hugetlb.c: __unmap_hugepage_range(): comment cleanup
Date: Mon May 5 02:54:25 PM PDT 2025
Wrap to 80 cols, fix a typo, use regular layout, parenthesize function
identifiers, fix grammar and add braces.
Cc: David Hildenbrand <david@redhat.com>
Cc: Fan Ni <fan.ni@samsung.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Cc: "Vishal Moola (Oracle)" <vishal.moola@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/hugetlb.c | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
--- a/mm/hugetlb.c~mm-hugetlbc-__unmap_hugepage_range-comment-cleanup
+++ a/mm/hugetlb.c
@@ -5969,16 +5969,19 @@ void __unmap_hugepage_range(struct mmu_g
if (adjust_reservation) {
int rc = vma_needs_reservation(h, vma, address);
- if (rc < 0)
- /* Pressumably allocate_file_region_entries failed
- * to allocate a file_region struct. Clear
- * hugetlb_restore_reserve so that global reserve
- * count will not be incremented by free_huge_folio.
- * Act as if we consumed the reservation.
+ if (rc < 0) {
+ /*
+ * Presumably allocate_file_region_entries()
+ * failed to allocate a file_region struct.
+ * Clear hugetlb_restore_reserve so that the
+ * global reserve count will not be incremented
+ * by free_huge_folio(). Act as if we consumed
+ * the reservation.
*/
folio_clear_hugetlb_restore_reserve(folio);
- else if (rc)
+ } else if (rc) {
vma_add_reservation(h, vma, address);
+ }
}
tlb_remove_page_size(tlb, folio_page(folio, 0),
_
Patches currently in -mm which might be from akpm@linux-foundation.org are
mm-establish-mm-vma_execc-for-shared-exec-mm-vma-functionality-fix.patch
mm-perform-vma-allocation-freeing-duplication-in-mm-fix.patch
filemap-do-not-use-folio_contains-for-swap-cache-folios-fix.patch
memcontrol-add-ksm_profit-in-cgroup-memoryksm_stat-fix.patch
mm-add-zblock-allocator-fix.patch
mm-add-zblock-allocator-fix-2.patch
mm-add-zblock-allocator-fix-3.patch
mm-zblock-avoid-failing-the-build-fix.patch
revert-x86-mm-remove-unused-__set_memory_prot-fix.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-05-13 6:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-13 6:42 [folded-merged] mm-hugetlbc-__unmap_hugepage_range-comment-cleanup.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.