]> git.baikalelectronics.ru Git - kernel.git/commit
mm: use linear_page_index() in do_fault()
authorMatthew Wilcox <matthew.r.wilcox@intel.com>
Tue, 15 Mar 2016 21:57:28 +0000 (14:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Mar 2016 23:55:16 +0000 (16:55 -0700)
commit83c03fa4d6ff2b40872775330b4fd24a83a1dde3
tree246c8405fb0aea518b25646cfbb0a8e85064da04
parentfc91b5bfd4e26ff515c1693db753f224c6877d4b
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>
mm/memory.c