<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - [CI][SHARDS] igt@* - dmesg-warn - i915_drop_caches_set+"
href="https://bugs.freedesktop.org/show_bug.cgi?id=110789#c12">Comment # 12</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - [CI][SHARDS] igt@* - dmesg-warn - i915_drop_caches_set+"
href="https://bugs.freedesktop.org/show_bug.cgi?id=110789">bug 110789</a>
from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
<pre>diff --git a/mm/huge_memory.c b/mm/huge_memory.c
index 9f8bce9a6b32..e15b67d4373a 100644
--- a/mm/huge_memory.c
+++ b/mm/huge_memory.c
@@ -2501,6 +2501,11 @@ static void __split_huge_page(struct page *page, struct
list_head *list,
} else if (!PageAnon(page)) {
__xa_store(&head->mapping->i_pages, head[i].index,
head + i, 0);
+ } else if (PageSwapCache(page)) {
+ swp_entry_t entry = { .val = page_private(head + i) };
+ __xa_store(&swap_address_space(entry)->i_pages,
+ swp_offset(entry),
+ head + i, 0);
}
}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>