aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorPaulo Alcantara <[email protected]>2022-12-06 02:31:53 +0000
committerSteve French <[email protected]>2022-12-08 15:51:53 +0000
commitd406d26745aba3365ab9171b2d5cbea9c1757305 (patch)
tree83500b44a6ab13755303fea484c69c47a7a34e88 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentcifs: remove ->writepage (diff)
downloadkernel-d406d26745aba3365ab9171b2d5cbea9c1757305.tar.gz
kernel-d406d26745aba3365ab9171b2d5cbea9c1757305.zip
cifs: skip alloc when request has no pages
When smb3_init_transform_rq() was being called with requests (@old_rq) which had no pages, it was unnecessarily allocating a single page for every request in @new_rq. Fix this by skipping page array allocation when requests have no pages (e.g. !smb_rqst::rq_npages). Also get rid of deprecated kmap() and use kmap_local_page() instead while we're at it. Signed-off-by: Paulo Alcantara (SUSE) <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions