filemap.c (b7c15a3ce6fea5da3aa836c897a78ac628467d54) filemap.c (5c041f5d1f23d3a172dd0db3215634c484b4acd6)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/mm/filemap.c
4 *
5 * Copyright (C) 1994-1999 Linus Torvalds
6 */
7
8/*

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

3371
3372 if (mmap_miss > 0)
3373 mmap_miss--;
3374
3375 addr += (xas.xa_index - last_pgoff) << PAGE_SHIFT;
3376 vmf->pte += xas.xa_index - last_pgoff;
3377 last_pgoff = xas.xa_index;
3378
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/mm/filemap.c
4 *
5 * Copyright (C) 1994-1999 Linus Torvalds
6 */
7
8/*

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

3371
3372 if (mmap_miss > 0)
3373 mmap_miss--;
3374
3375 addr += (xas.xa_index - last_pgoff) << PAGE_SHIFT;
3376 vmf->pte += xas.xa_index - last_pgoff;
3377 last_pgoff = xas.xa_index;
3378
3379 /*
3380 * NOTE: If there're PTE markers, we'll leave them to be
3381 * handled in the specific fault path, and it'll prohibit the
3382 * fault-around logic.
3383 */
3379 if (!pte_none(*vmf->pte))
3380 goto unlock;
3381
3382 /* We're about to handle the fault */
3383 if (vmf->address == addr)
3384 ret = VM_FAULT_NOPAGE;
3385
3386 do_set_pte(vmf, page, addr);

--- 599 unchanged lines hidden ---
3384 if (!pte_none(*vmf->pte))
3385 goto unlock;
3386
3387 /* We're about to handle the fault */
3388 if (vmf->address == addr)
3389 ret = VM_FAULT_NOPAGE;
3390
3391 do_set_pte(vmf, page, addr);

--- 599 unchanged lines hidden ---