aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c
diff options
context:
space:
mode:
authorKefeng Wang <[email protected]>2024-12-06 07:03:45 +0000
committerAndrew Morton <[email protected]>2024-12-31 01:59:06 +0000
commit34d7cf637c437d5c2a8a6ef23ea45193bad8a91c (patch)
tree3284af40ee25d02f4f5d684ff88fd443136f1e97 /drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c
parentmm: vmscan: account for free pages to prevent infinite Loop in throttle_direc... (diff)
downloadkernel-34d7cf637c437d5c2a8a6ef23ea45193bad8a91c.tar.gz
kernel-34d7cf637c437d5c2a8a6ef23ea45193bad8a91c.zip
mm: don't try THP alignment for FS without get_unmapped_area
Commit ed48e87c7df3 ("thp: add thp_get_unmapped_area_vmflags()") changes thp_get_unmapped_area() to thp_get_unmapped_area_vmflags() in __get_unmapped_area(), which doesn't initialize local get_area for anonymous mappings. This leads to us always trying THP alignment even for file_operations which have a NULL ->get_unmapped_area() callback. Since commit efa7df3e3bb5 ("mm: align larger anonymous mappings on THP boundaries") we only want to enable THP alignment for anonymous mappings, so add a !file check to avoid attempting THP alignment for file mappings. Found issue by code inspection. THP alignment is used for easy or more pmd mappings, from vma side. This may cause unnecessary VMA fragmentation and potentially worse performance on filesystems that do not actually support THPs and thus cannot benefit from the alignment. Link: https://lkml.kernel.org/r/[email protected] Fixes: ed48e87c7df3 ("thp: add thp_get_unmapped_area_vmflags()") Signed-off-by: Kefeng Wang <[email protected]> Reviewed-by: Vlastimil Babka <[email protected]> Reviewed-by: Yang Shi <[email protected]> Cc: Christophe Leroy <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: Jann Horn <[email protected]> Cc: Liam R. Howlett <[email protected]> Cc: Lorenzo Stoakes <[email protected]> Cc: Rick Edgecombe <[email protected]> Cc: Ryan Roberts <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c')
0 files changed, 0 insertions, 0 deletions