Changeset 100475 in vbox for trunk/src/VBox
- Timestamp:
- Jul 10, 2023 3:59:33 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
r100435 r100475 1342 1342 const int cPages = cb >> PAGE_SHIFT; 1343 1343 struct task_struct *pTask = rtR0ProcessToLinuxTask(R0Process); 1344 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) 1344 1345 struct vm_area_struct **papVMAs; 1346 # endif 1345 1347 PRTR0MEMOBJLNX pMemLnx; 1346 1348 int rc = VERR_NO_MEMORY; … … 1370 1372 if (papVMAs) 1371 1373 { 1372 # else1373 RT_NOREF(papVMAs);1374 1374 # endif 1375 1375 LNX_MM_DOWN_READ(pTask->mm); … … 1465 1465 { 1466 1466 flush_dcache_page(pMemLnx->apPages[rc]); 1467 #if RTLNX_VER_MIN(6,3,0) 1467 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) 1468 # if RTLNX_VER_MIN(6,3,0) 1468 1469 vm_flags_set(papVMAs[rc], VM_DONTCOPY | VM_LOCKED); 1469 # elif GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0)1470 # else 1470 1471 papVMAs[rc]->vm_flags |= VM_DONTCOPY | VM_LOCKED; 1471 #endif 1472 # endif 1473 # endif 1472 1474 } 1473 1475
Note:
See TracChangeset
for help on using the changeset viewer.