[ Sasha's backport helper bot ]
Hi,
Summary of potential issues: ⚠️ Found matching upstream commit but patch is missing proper reference to it
Found matching upstream commit: 14efb4793519d73fb2902bb0ece319b886e4b4b9
Status in newer kernel trees: 6.13.y | Not found
Note: The patch differs from the upstream commit: --- 1: 14efb4793519d ! 1: 8e2adc6066c3d mm/huge_memory: drop beyond-EOF folios with the right number of refs @@ Commit message Cc: Yu Zhao yuzhao@google.com Cc: stable@vger.kernel.org Signed-off-by: Andrew Morton akpm@linux-foundation.org + (cherry picked from commit 14efb4793519d73fb2902bb0ece319b886e4b4b9)
## mm/huge_memory.c ## @@ mm/huge_memory.c: static void __split_huge_page(struct page *page, struct list_head *list, @@ mm/huge_memory.c: static void __split_huge_page(struct page *page, struct list_h __filemap_remove_folio(tail, NULL); - folio_put(tail); + folio_put_refs(tail, folio_nr_pages(tail)); - } else if (!folio_test_anon(folio)) { - __xa_store(&folio->mapping->i_pages, tail->index, - tail, 0); + } else if (!PageAnon(page)) { + __xa_store(&folio->mapping->i_pages, head[i].index, + head + i, 0); ---
Results of testing on various branches:
| Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-6.12.y | Success | Success |