[PATCH] fixup: mm/hugetlb: serialize page-cache allocations with truncation

From: David Hildenbrand (Arm)

Date: Thu Nov 19 2026 - 11:57:41 EST


Update documented locking order in mm/rmap.c.

Signed-off-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
---
mm/rmap.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/mm/rmap.c b/mm/rmap.c
index 0faef46806e5c..a452db02826e8 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -48,8 +48,9 @@
* hugetlbfs PageHuge() take locks in this order:
* hugetlb_fault_mutex (hugetlbfs specific page fault mutex)
* vma_lock (hugetlb specific lock for pmd_sharing)
- * mapping->i_mmap_rwsem (also used for hugetlb pmd sharing)
- * folio_lock
+ * mapping->invalidate_lock (when allocating page cache folios)
+ * mapping->i_mmap_rwsem (also used for hugetlb pmd sharing)
+ * folio_lock
*/

#include <linux/mm.h>
--
2.56.1


--
Cheers,

David