VirtualBox

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


Ignore:
Timestamp:
Apr 12, 2016 1:04:28 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106541
Message:

Runtime/Additions: Linux 4.6 fixes

File:
1 edited

Legend:

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

    r60372 r60453  
    590590                    if (!PageReserved(pMemLnx->apPages[iPage]))
    591591                        SetPageDirty(pMemLnx->apPages[iPage]);
     592#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
     593                    put_page(pMemLnx->apPages[iPage]);
     594#else
    592595                    page_cache_release(pMemLnx->apPages[iPage]);
     596#endif
    593597                }
    594598
     
    10931097            if (!PageReserved(pMemLnx->apPages[rc]))
    10941098                SetPageDirty(pMemLnx->apPages[rc]);
     1099#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
     1100            put_page(pMemLnx->apPages[rc]);
     1101#else
    10951102            page_cache_release(pMemLnx->apPages[rc]);
     1103#endif
    10961104        }
    10971105
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