aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2025-05-27 13:28:52 +0000
committerChristian Brauner <[email protected]>2025-05-27 19:06:24 +0000
commit095f627add86a6ddda2c2cfd563b0ee05d0172b2 (patch)
treed8d21d57e987bffd142297322a2e234ab9f4072c /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
parentMerge tag 'nolibc-20250526-for-6.16-1' of git://git.kernel.org/pub/scm/linux/... (diff)
downloadkernel-095f627add86a6ddda2c2cfd563b0ee05d0172b2.tar.gz
kernel-095f627add86a6ddda2c2cfd563b0ee05d0172b2.zip
mm/filemap: gate dropbehind invalidate on folio !dirty && !writeback
It's possible for the folio to either get marked for writeback or redirtied. Add a helper, filemap_end_dropbehind(), which guards the folio_unmap_invalidate() call behind check for the folio being both non-dirty and not under writeback AFTER the folio lock has been acquired. Use this helper folio_end_dropbehind_write(). Cc: [email protected] Reported-by: Al Viro <[email protected]> Fixes: fb7d3bc41493 ("mm/filemap: drop streaming/uncached pages when writeback completes") Link: https://lore.kernel.org/linux-fsdevel/20250525083209.GS2023217@ZenIV/ Signed-off-by: Jens Axboe <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions