Changeset 60372 in vbox
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/VBox-5.0 merged: 106453
- Property svn:mergeinfo changed
-
trunk/src/VBox
- Property svn:mergeinfo changed
/branches/VBox-5.0/src/VBox merged: 106453
- Property svn:mergeinfo changed
-
trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
r58171 r60372 373 373 pMemLnx->fContiguous = fContiguous; 374 374 375 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0) 375 376 /* 376 377 * Reserve the pages. 378 * 379 * Linux >= 4.5 with CONFIG_DEBUG_VM panics when setting PG_reserved on compound 380 * pages. According to Michal Hocko this shouldn't be necessary anyway because 381 * as pages which are not on the LRU list are never evictable. 377 382 */ 378 383 for (iPage = 0; iPage < cPages; iPage++) 379 384 SetPageReserved(pMemLnx->apPages[iPage]); 385 #endif 380 386 381 387 /* … … 424 430 while (iPage-- > 0) 425 431 { 432 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0) 433 /* 434 * See SetPageReserved() in rtR0MemObjLinuxAllocPages() 435 */ 426 436 ClearPageReserved(pMemLnx->apPages[iPage]); 437 #endif 427 438 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 22) 428 439 #else
Note:
See TracChangeset
for help on using the changeset viewer.