]> Git Repo - linux.git/commit
filemap: update offset check in filemap_fault()
authorSong Liu <[email protected]>
Mon, 23 Sep 2019 22:37:50 +0000 (15:37 -0700)
committerLinus Torvalds <[email protected]>
Tue, 24 Sep 2019 22:54:11 +0000 (15:54 -0700)
commit520e5ba415906373186bcd3c7cffa3535bfdbdde
treea6d33c8c66bd3865245f93931484427dce1a0eb4
parent31895438e702f48e25b7aa6d88f9c97c795c79c7
filemap: update offset check in filemap_fault()

With THP, current check of offset:

    VM_BUG_ON_PAGE(page->index != offset, page);

is no longer accurate. Update it to:

    VM_BUG_ON_PAGE(page_to_pgoff(page) != offset, page);

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Song Liu <[email protected]>
Acked-by: Rik van Riel <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Cc: Hillf Danton <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: William Kucharski <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/filemap.c
This page took 0.053671 seconds and 4 git commands to generate.