summaryrefslogtreecommitdiffstats
path: root/mm/huge_memory.c
diff options
context:
space:
mode:
authorMatthew Wilcox2016-03-15 22:57:28 +0100
committerLinus Torvalds2016-03-16 00:55:16 +0100
commit88193f7ce6657ec4197b1f26b73b37197373b8e6 (patch)
tree246c8405fb0aea518b25646cfbb0a8e85064da04 /mm/huge_memory.c
parentmm: remove unnecessary uses of lock_page_memcg() (diff)
downloadkernel-qcow2-linux-88193f7ce6657ec4197b1f26b73b37197373b8e6.tar.gz
kernel-qcow2-linux-88193f7ce6657ec4197b1f26b73b37197373b8e6.tar.xz
kernel-qcow2-linux-88193f7ce6657ec4197b1f26b73b37197373b8e6.zip
mm: use linear_page_index() in do_fault()
do_fault() assumes that PAGE_SIZE is the same as PAGE_CACHE_SIZE. Use linear_page_index() to calculate pgoff in the correct units. Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/huge_memory.c')
0 files changed, 0 insertions, 0 deletions