ANDROID: GKI: fix build breakage in io_uring during 6.1.132 merge

In commit 9aeb68337a ("io_uring: get rid of remap_pfn_range() for
mapping rings/sqes"), direct access to vm_flags was attempted, but
that's not allowed anymore in the Android 6.1 branch due to other
upstream changes merged into here.  Fix this up by calling the proper
vm_flags_set() function instead.

Fixes: 9aeb68337a ("io_uring: get rid of remap_pfn_range() for mapping rings/sqes")
Change-Id: I05bdf96a2f6760e9388237d71d2471c373e29c0c
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman
2025-03-30 16:57:58 +00:00
parent e561be4096
commit 4076744180

View File

@@ -3226,7 +3226,7 @@ int io_uring_mmap_pages(struct io_ring_ctx *ctx, struct vm_area_struct *vma,
{
unsigned long nr_pages = npages;
vma->vm_flags |= VM_DONTEXPAND;
vm_flags_set(vma, VM_DONTEXPAND);
return vm_insert_pages(vma, vma->vm_start, pages, &nr_pages);
}