]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - mm/huge_memory.c
Revert "mm: page cache: store only head pages in i_pages"
[mirror_ubuntu-jammy-kernel.git] / mm / huge_memory.c
index 9f8bce9a6b32ed2a0f29a51c23e539668acada3b..885642c82aaa2f1423ad2fd74b59239d5effee94 100644 (file)
@@ -1,8 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  *  Copyright (C) 2009  Red Hat, Inc.
- *
- *  This work is licensed under the terms of the GNU GPL, version 2. See
- *  the COPYING file in the top-level directory.
  */
 
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
@@ -2498,9 +2496,6 @@ static void __split_huge_page(struct page *page, struct list_head *list,
                        if (IS_ENABLED(CONFIG_SHMEM) && PageSwapBacked(head))
                                shmem_uncharge(head->mapping->host, 1);
                        put_page(head + i);
-               } else if (!PageAnon(page)) {
-                       __xa_store(&head->mapping->i_pages, head[i].index,
-                                       head + i, 0);
                }
        }