Thread (3 messages) 3 messages, 3 authors, 2016-02-01

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

From: Matthew Wilcox <hidden>
Date: 2016-02-01 20:43:57
Also in: lkml

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:
quoted
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 <redacted>
Acked-by: Kirill A. Shutemov <redacted>

'linear' part of helper name is not relevant any more since we've dropped
non-linear mappings. Probably, we should rename helpers.
Ah, that's what it was named for.  Yes, probably.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help