diff options
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c index 2a8430844b6d..b3c42f0f65c2 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -2361,7 +2361,7 @@ static int do_linear_fault(struct mm_struct *mm, struct vm_area_struct *vma, | |||
2361 | int write_access, pte_t orig_pte) | 2361 | int write_access, pte_t orig_pte) |
2362 | { | 2362 | { |
2363 | pgoff_t pgoff = (((address & PAGE_MASK) | 2363 | pgoff_t pgoff = (((address & PAGE_MASK) |
2364 | - vma->vm_start) >> PAGE_CACHE_SHIFT) + vma->vm_pgoff; | 2364 | - vma->vm_start) >> PAGE_SHIFT) + vma->vm_pgoff; |
2365 | unsigned int flags = (write_access ? FAULT_FLAG_WRITE : 0); | 2365 | unsigned int flags = (write_access ? FAULT_FLAG_WRITE : 0); |
2366 | 2366 | ||
2367 | pte_unmap(page_table); | 2367 | pte_unmap(page_table); |