Re: [PATCH] mm: Use linear_page_index() in do_fault()

2016-02-01 Thread Matthew Wilcox
On Mon, Feb 01, 2016 at 03:06:38PM +0200, Kirill A. Shutemov wrote: > On Sun, Jan 31, 2016 at 11:13:21PM +1100, Matthew Wilcox wrote: > > 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: Matt

Re: [PATCH] mm: Use linear_page_index() in do_fault()

2016-02-01 Thread Kirill A. Shutemov
On Sun, Jan 31, 2016 at 11:13:21PM +1100, Matthew Wilcox wrote: > 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 Acked-by: Kirill A. Shutemov 'linear' part of helper name is no

[PATCH] mm: Use linear_page_index() in do_fault()

2016-01-31 Thread Matthew Wilcox
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 --- mm/memory.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index 554816b..5224c06 10