[Bug 110789] [CI][SHARDS] igt@* - dmesg-warn - i915_drop_caches_set+

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jun 2 22:15:52 UTC 2019


https://bugs.freedesktop.org/show_bug.cgi?id=110789

--- Comment #12 from Chris Wilson <chris at chris-wilson.co.uk> ---
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);
                }
        }

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20190602/f6540845/attachment.html>


More information about the intel-gfx-bugs mailing list