mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
ANDROID: GKI: fix build breakage in io_uring during 6.1.132 merge
In commit9aeb68337a("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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user