VirtualBox

Changeset 85689 in vbox for trunk/src


Ignore:
Timestamp:
Aug 11, 2020 12:48:15 PM (4 years ago)
Author:
vboxsync
Message:

linux/vboxsf: Try workaround suse backporting get_user_pages_unlocked changes from 4.9 to their 4.4.x SEL12 releases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/regops.c

    r85687 r85689  
    14311431DECLINLINE(int) vbsf_lock_user_pages(uintptr_t uPtrFrom, size_t cPages, bool fWrite, struct page **papPages, bool *pfLockPgHack)
    14321432{
    1433 # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)
     1433# if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0) \
     1434  || (   defined(CONFIG_SUSE_KERNEL) /** @todo Figure out when exactly. Also, guessing a bit here what got backported. */ \
     1435      && LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 73) \
     1436      && LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0))
    14341437    ssize_t cPagesLocked = get_user_pages_unlocked(uPtrFrom, cPages, papPages,
    14351438                                                   fWrite ? FOLL_WRITE | FOLL_FORCE : FOLL_FORCE);
     
    37313734 * I/O requests if we don't intercept them earlier.
    37323735 */
    3733 # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0)
     3736# if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0) \
     3737  || (defined(CONFIG_SUSE_KERNEL) && LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 73) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0)) /** @todo Figure out when exactly. */
    37343738static ssize_t vbsf_direct_IO(struct kiocb *iocb, struct iov_iter *iter)
    37353739# elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0)
Note: See TracChangeset for help on using the changeset viewer.

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