aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <[email protected]>2023-01-15 16:49:12 +0000
committerDarrick J. Wong <[email protected]>2023-01-18 18:44:04 +0000
commit9060bc4d3aca6106bbe72891efba391d9d6b86e7 (patch)
tree8a7aa607ea3a76139022448beb015edfbeb360f9 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentiomap: Add iomap_get_folio helper (diff)
downloadkernel-9060bc4d3aca6106bbe72891efba391d9d6b86e7.tar.gz
kernel-9060bc4d3aca6106bbe72891efba391d9d6b86e7.zip
iomap/gfs2: Get page in page_prepare handler
Change the iomap ->page_prepare() handler to get and return a locked folio instead of doing that in iomap_write_begin(). This allows to recover from out-of-memory situations in ->page_prepare(), which eliminates the corresponding error handling code in iomap_write_begin(). The ->put_folio() handler now also isn't called with NULL as the folio value anymore. Filesystems are expected to use the iomap_get_folio() helper for getting locked folios in their ->page_prepare() handlers. Signed-off-by: Andreas Gruenbacher <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions