aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorDavid Howells <[email protected]>2020-09-04 23:36:16 +0000
committerLinus Torvalds <[email protected]>2020-09-05 19:14:30 +0000
commite5a59d308f52bb0052af5790c22173651b187465 (patch)
tree0ca1212a1af29f43b819e302f5975ab131694347 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentmm/hugetlb: fix a race between hugetlb sysctl handlers (diff)
downloadkernel-e5a59d308f52bb0052af5790c22173651b187465.tar.gz
kernel-e5a59d308f52bb0052af5790c22173651b187465.zip
mm/khugepaged.c: fix khugepaged's request size in collapse_file
collapse_file() in khugepaged passes PAGE_SIZE as the number of pages to be read to page_cache_sync_readahead(). The intent was probably to read a single page. Fix it to use the number of pages to the end of the window instead. Fixes: 99cb0dbd47a1 ("mm,thp: add read-only THP support for (non-shmem) FS") Signed-off-by: David Howells <[email protected]> Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Reviewed-by: Matthew Wilcox (Oracle) <[email protected]> Acked-by: Song Liu <[email protected]> Acked-by: Yang Shi <[email protected]> Acked-by: Pankaj Gupta <[email protected]> Cc: Eric Biggers <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions