VirtualBox

Changeset 33619 in vbox for trunk/src/VBox/Runtime/r0drv


Ignore:
Timestamp:
Oct 29, 2010 3:38:46 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67230
Message:

Runtime/r0drv/memobj-r0drv-linux.c: set GFP_NOMEMALLOC when allocating pages to prevent using the emergency page reserves

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c

    r33540 r33619  
    204204        ||  cb <= PAGE_SIZE * 2)
    205205    {
     206# ifdef __GFP_NOMEMALLOC
     207        /* Introduced with Linux 2.6.12: Don't use emergency reserves */
     208        fFlagsLnx |= __GFP_NOMEMALLOC;
     209# endif
    206210# ifdef VBOX_USE_INSERT_PAGE
    207211        paPages = alloc_pages(fFlagsLnx |  __GFP_COMP, rtR0MemObjLinuxOrder(cPages));
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette