summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorMike Rapoport (Microsoft) <rppt@kernel.org>2026-07-04 09:13:34 +0300
committerMartin K. Petersen (Oracle) <mkp@kernel.org>2026-09-01 22:31:02 -0400
commitf07ed527235c44e0aae53100133bb547f5ee448f (patch)
tree99ca8b9c1e7c210e86ffc533bceb6ea9c17c86f4 /scripts/Makefile.thinlto
parentcee9395acd8043be0644b25c34bfa86623f2b935 (diff)
downloadlinux-next-f07ed527235c44e0aae53100133bb547f5ee448f.tar.gz
linux-next-f07ed527235c44e0aae53100133bb547f5ee448f.zip
scsi: target: file: Use kmalloc() to allocate temporary protection buffer
fd_do_prot_unmap() uses __get_free_page() to allocate a temporary buffer that is used to invalidate protection info for the unmapped region by filling with 0xff pattern. This buffer can be allocated with kmalloc() as there's nothing special about it to go directly to the page allocator. kmalloc() provides a better API that does not require ugly casts and kfree() does not need to know the size of the freed object. Replace use of __get_free_page() with kmalloc(). Link: https://lore.kernel.org/all/635405e4-9423-4a25-a6e7-e03c8ea0bcbe@redhat.com Reviewed-by: Hannes Reinecke <hare@kernel.org> Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Link: https://patch.msgid.link/20260704-b4-scsi-v2-1-7d2d21a810de@kernel.org Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions