khugepaged.c (71af75b6929458d85f63c0649dc26d6f4c19729e) khugepaged.c (acdd9f8e0fed9f1bd7e83a8ff934694bb4c9a72b)
1// SPDX-License-Identifier: GPL-2.0
2#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
3
4#include <linux/mm.h>
5#include <linux/sched.h>
6#include <linux/sched/mm.h>
7#include <linux/sched/coredump.h>
8#include <linux/mmu_notifier.h>

--- 1707 unchanged lines hidden (view full) ---

1716 nr_none++;
1717 continue;
1718 }
1719
1720 if (xa_is_value(page) || !PageUptodate(page)) {
1721 xas_unlock_irq(&xas);
1722 /* swap in or instantiate fallocated page */
1723 if (shmem_getpage(mapping->host, index, &page,
1// SPDX-License-Identifier: GPL-2.0
2#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
3
4#include <linux/mm.h>
5#include <linux/sched.h>
6#include <linux/sched/mm.h>
7#include <linux/sched/coredump.h>
8#include <linux/mmu_notifier.h>

--- 1707 unchanged lines hidden (view full) ---

1716 nr_none++;
1717 continue;
1718 }
1719
1720 if (xa_is_value(page) || !PageUptodate(page)) {
1721 xas_unlock_irq(&xas);
1722 /* swap in or instantiate fallocated page */
1723 if (shmem_getpage(mapping->host, index, &page,
1724 SGP_NOHUGE)) {
1724 SGP_NOALLOC)) {
1725 result = SCAN_FAIL;
1726 goto xa_unlocked;
1727 }
1728 } else if (trylock_page(page)) {
1729 get_page(page);
1730 xas_unlock_irq(&xas);
1731 } else {
1732 result = SCAN_PAGE_LOCK;

--- 635 unchanged lines hidden ---
1725 result = SCAN_FAIL;
1726 goto xa_unlocked;
1727 }
1728 } else if (trylock_page(page)) {
1729 get_page(page);
1730 xas_unlock_irq(&xas);
1731 } else {
1732 result = SCAN_PAGE_LOCK;

--- 635 unchanged lines hidden ---