Changeset 85693 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Aug 11, 2020 2:18:10 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/regops.c
r85692 r85693 1431 1431 DECLINLINE(int) vbsf_lock_user_pages(uintptr_t uPtrFrom, size_t cPages, bool fWrite, struct page **papPages, bool *pfLockPgHack) 1432 1432 { 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))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. */) 1437 1437 ssize_t cPagesLocked = get_user_pages_unlocked(uPtrFrom, cPages, papPages, 1438 1438 fWrite ? FOLL_WRITE | FOLL_FORCE : FOLL_FORCE); 1439 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6,0)1439 # elif RTLNX_VER_MIN(4,6,0) 1440 1440 ssize_t cPagesLocked = get_user_pages_unlocked(uPtrFrom, cPages, fWrite, 1 /*force*/, papPages); 1441 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 168) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 5,0)1441 # elif RTLNX_VER_RANGE(4,4,168, 4,5,0) 1442 1442 ssize_t cPagesLocked = get_user_pages_unlocked(current, current->mm, uPtrFrom, cPages, papPages, 1443 1443 fWrite ? FOLL_WRITE | FOLL_FORCE : FOLL_FORCE); 1444 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0,0)1444 # elif RTLNX_VER_MIN(4,0,0) 1445 1445 ssize_t cPagesLocked = get_user_pages_unlocked(current, current->mm, uPtrFrom, cPages, fWrite, 1 /*force*/, papPages); 1446 1446 # else … … 3734 3734 * I/O requests if we don't intercept them earlier. 3735 3735 */ 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. */ 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. */) 3738 3740 static ssize_t vbsf_direct_IO(struct kiocb *iocb, struct iov_iter *iter) 3739 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0)3741 # elif RTLNX_VER_MIN(4, 1, 0) 3740 3742 static ssize_t vbsf_direct_IO(struct kiocb *iocb, struct iov_iter *iter, loff_t offset) 3741 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) || defined(VBOX_UEK)3743 # elif RTLNX_VER_MIN(3, 16, 0) || defined(VBOX_UEK) 3742 3744 static ssize_t vbsf_direct_IO(int rw, struct kiocb *iocb, struct iov_iter *iter, loff_t offset) 3743 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 6)3745 # elif RTLNX_VER_MIN(2, 6, 6) 3744 3746 static ssize_t vbsf_direct_IO(int rw, struct kiocb *iocb, const struct iovec *iov, loff_t offset, unsigned long nr_segs) 3745 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 55)3747 # elif RTLNX_VER_MIN(2, 5, 55) 3746 3748 static int vbsf_direct_IO(int rw, struct kiocb *iocb, const struct iovec *iov, loff_t offset, unsigned long nr_segs) 3747 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 41)3749 # elif RTLNX_VER_MIN(2, 5, 41) 3748 3750 static int vbsf_direct_IO(int rw, struct file *file, const struct iovec *iov, loff_t offset, unsigned long nr_segs) 3749 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 35)3751 # elif RTLNX_VER_MIN(2, 5, 35) 3750 3752 static int vbsf_direct_IO(int rw, struct inode *inode, const struct iovec *iov, loff_t offset, unsigned long nr_segs) 3751 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 26)3753 # elif RTLNX_VER_MIN(2, 5, 26) 3752 3754 static int vbsf_direct_IO(int rw, struct inode *inode, char *buf, loff_t offset, size_t count) 3753 3755 # elif LINUX_VERSION_CODE == KERNEL_VERSION(2, 4, 21) && defined(I_NEW) /* RHEL3 Frankenkernel. */
Note:
See TracChangeset
for help on using the changeset viewer.