Changeset 50077 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- Jan 14, 2014 9:36:56 AM (11 years ago)
- Location:
- trunk/src/VBox/Runtime/r0drv/linux
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c
r50008 r50077 181 181 for (iPage = 0; iPage < cPages; iPage++) 182 182 { 183 papPages[iPage] = alloc_page(GFP_KERNEL | __GFP_HIGHMEM );183 papPages[iPage] = alloc_page(GFP_KERNEL | __GFP_HIGHMEM | __GFP_NOWARN); 184 184 if (!papPages[iPage]) 185 185 break; … … 391 391 #if (defined(RT_ARCH_AMD64) || defined(CONFIG_X86_PAE)) && defined(GFP_DMA32) 392 392 /* ZONE_DMA32: 0-4GB */ 393 paPages = alloc_pages(GFP_DMA32 , cOrder);393 paPages = alloc_pages(GFP_DMA32 | __GFP_NOWARN, cOrder); 394 394 if (!paPages) 395 395 #endif 396 396 #ifdef RT_ARCH_AMD64 397 397 /* ZONE_DMA; 0-16MB */ 398 paPages = alloc_pages(GFP_DMA , cOrder);398 paPages = alloc_pages(GFP_DMA | __GFP_NOWARN, cOrder); 399 399 #else 400 400 /* ZONE_NORMAL: 0-896MB */ 401 paPages = alloc_pages(GFP_USER , cOrder);401 paPages = alloc_pages(GFP_USER | __GFP_NOWARN, cOrder); 402 402 #endif 403 403 if (paPages) -
trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
r49651 r50077 321 321 { 322 322 # ifdef VBOX_USE_INSERT_PAGE 323 paPages = alloc_pages(fFlagsLnx | __GFP_COMP, rtR0MemObjLinuxOrder(cPages));323 paPages = alloc_pages(fFlagsLnx | __GFP_COMP | __GFP_NOWARN, rtR0MemObjLinuxOrder(cPages)); 324 324 # else 325 paPages = alloc_pages(fFlagsLnx , rtR0MemObjLinuxOrder(cPages));325 paPages = alloc_pages(fFlagsLnx | __GFP_NOWARN, rtR0MemObjLinuxOrder(cPages)); 326 326 # endif 327 327 if (paPages) … … 342 342 for (iPage = 0; iPage < cPages; iPage++) 343 343 { 344 pMemLnx->apPages[iPage] = alloc_page(fFlagsLnx );344 pMemLnx->apPages[iPage] = alloc_page(fFlagsLnx | __GFP_NOWARN); 345 345 if (RT_UNLIKELY(!pMemLnx->apPages[iPage])) 346 346 { … … 1171 1171 * the dummy page is mapped all over the reserved area. 1172 1172 */ 1173 pDummyPage = alloc_page(GFP_HIGHUSER );1173 pDummyPage = alloc_page(GFP_HIGHUSER | __GFP_NOWARN); 1174 1174 if (!pDummyPage) 1175 1175 return VERR_NO_MEMORY; … … 1408 1408 * Allocate a dummy page for use when mapping the memory. 1409 1409 */ 1410 pDummyPage = alloc_page(GFP_USER );1410 pDummyPage = alloc_page(GFP_USER | __GFP_NOWARN); 1411 1411 if (!pDummyPage) 1412 1412 return VERR_NO_MEMORY; -
trunk/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h
r48383 r50077 151 151 #endif 152 152 153 #ifndef __GFP_NOWARN 154 # define __GFP_NOWARN 0 155 #endif 156 153 157 /* 154 158 * 2.4 / early 2.6 compatibility wrappers
Note:
See TracChangeset
for help on using the changeset viewer.