commit | 88193f7ce6657ec4197b1f26b73b37197373b8e6 | [log] [tgz] |
---|---|---|
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | Tue Mar 15 14:57:28 2016 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Tue Mar 15 16:55:16 2016 -0700 |
tree | 246c8405fb0aea518b25646cfbb0a8e85064da04 | |
parent | fdf1cdb91b6ab7a8a91df68c384f36b8a0909cab [diff] |
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>