aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/memory.c')
-rw-r--r--mm/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c
index 7049d394fa07..e7ccbac25b72 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -2832,7 +2832,7 @@ static void do_fault_around(struct vm_area_struct *vma, unsigned long address,
2832 2832
2833 /* 2833 /*
2834 * max_pgoff is either end of page table or end of vma 2834 * max_pgoff is either end of page table or end of vma
2835 * or fault_around_pages() from pgoff, depending what is neast. 2835 * or fault_around_pages() from pgoff, depending what is nearest.
2836 */ 2836 */
2837 max_pgoff = pgoff - ((start_addr >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)) + 2837 max_pgoff = pgoff - ((start_addr >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)) +
2838 PTRS_PER_PTE - 1; 2838 PTRS_PER_PTE - 1;