VirtualBox

Changeset 85692 in vbox for trunk/src/VBox/Additions


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

Reverted r139829 to correct commit message.

File:
1 edited

Legend:

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

    r85691 r85692  
    14311431DECLINLINE(int) vbsf_lock_user_pages(uintptr_t uPtrFrom, size_t cPages, bool fWrite, struct page **papPages, bool *pfLockPgHack)
    14321432{
    1433 # if RTLNX_VER_MIN(4,9,0) \
    1434   || (defined(CONFIG_SUSE_KERNEL) && RTLNX_VER_RANGE(4,4,73,  4,4,74) /** @todo Figure out when & what exactly. */) \
    1435   || (defined(CONFIG_SUSE_KERNEL) && RTLNX_VER_RANGE(4,4,75,  4,4,90) /** @todo Figure out when & what exactly. */) \
    1436   || (defined(CONFIG_SUSE_KERNEL) && RTLNX_VER_RANGE(4,4,92,  4,5,0)  /** @todo Figure out when & what exactly. */)
     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))
    14371437    ssize_t cPagesLocked = get_user_pages_unlocked(uPtrFrom, cPages, papPages,
    14381438                                                   fWrite ? FOLL_WRITE | FOLL_FORCE : FOLL_FORCE);
    1439 # elif RTLNX_VER_MIN(4,6,0)
     1439# elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
    14401440    ssize_t cPagesLocked = get_user_pages_unlocked(uPtrFrom, cPages, fWrite, 1 /*force*/, papPages);
    1441 # elif RTLNX_VER_RANGE(4,4,168,  4,5,0)
     1441# elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 168) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0)
    14421442    ssize_t cPagesLocked = get_user_pages_unlocked(current, current->mm, uPtrFrom, cPages, papPages,
    14431443                                                   fWrite ? FOLL_WRITE | FOLL_FORCE : FOLL_FORCE);
    1444 # elif RTLNX_VER_MIN(4,0,0)
     1444# elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0)
    14451445    ssize_t cPagesLocked = get_user_pages_unlocked(current, current->mm, uPtrFrom, cPages, fWrite, 1 /*force*/, papPages);
    14461446# else
     
    37343734 * I/O requests if we don't intercept them earlier.
    37353735 */
    3736 # if RTLNX_VER_MIN(4, 7, 0) \
    3737   || (defined(CONFIG_SUSE_KERNEL) && RTLNX_VER_RANGE(4,4,73,  4,4,74) /** @todo Figure out when exactly. */) \
    3738   || (defined(CONFIG_SUSE_KERNEL) && RTLNX_VER_RANGE(4,4,75,  4,4,90) /** @todo Figure out when exactly. */) \
    3739   || (defined(CONFIG_SUSE_KERNEL) && RTLNX_VER_RANGE(4,4,92,  4,5,0)  /** @todo Figure out when exactly. */)
     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. */
    37403738static ssize_t vbsf_direct_IO(struct kiocb *iocb, struct iov_iter *iter)
    3741 # elif RTLNX_VER_MIN(4, 1, 0)
     3739# elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0)
    37423740static ssize_t vbsf_direct_IO(struct kiocb *iocb, struct iov_iter *iter, loff_t offset)
    3743 # elif RTLNX_VER_MIN(3, 16, 0) || defined(VBOX_UEK)
     3741# elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) || defined(VBOX_UEK)
    37443742static ssize_t vbsf_direct_IO(int rw, struct kiocb *iocb, struct iov_iter *iter, loff_t offset)
    3745 # elif RTLNX_VER_MIN(2, 6, 6)
     3743# elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 6)
    37463744static ssize_t vbsf_direct_IO(int rw, struct kiocb *iocb, const struct iovec *iov, loff_t offset, unsigned long nr_segs)
    3747 # elif RTLNX_VER_MIN(2, 5, 55)
     3745# elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 55)
    37483746static int vbsf_direct_IO(int rw, struct kiocb *iocb, const struct iovec *iov, loff_t offset, unsigned long nr_segs)
    3749 # elif RTLNX_VER_MIN(2, 5, 41)
     3747# elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 41)
    37503748static int vbsf_direct_IO(int rw, struct file *file, const struct iovec *iov, loff_t offset, unsigned long nr_segs)
    3751 # elif RTLNX_VER_MIN(2, 5, 35)
     3749# elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 35)
    37523750static int vbsf_direct_IO(int rw, struct inode *inode, const struct iovec *iov, loff_t offset, unsigned long nr_segs)
    3753 # elif RTLNX_VER_MIN(2, 5, 26)
     3751# elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 26)
    37543752static int vbsf_direct_IO(int rw, struct inode *inode, char *buf, loff_t offset, size_t count)
    37553753# elif LINUX_VERSION_CODE == KERNEL_VERSION(2, 4, 21) && defined(I_NEW) /* RHEL3 Frankenkernel.  */
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