Репозиторий Sisyphus
Последнее обновление: 29 сентября 2022 | Пакетов: 17663 | Посещений: 25048976
en ru br
Репозитории ALT
S:6.1.38-alt1.332556.1
5.1: 4.0.12-alt0.M51.132640.5
www.altlinux.org/Changes

Группа :: Система/Ядро и оборудование
Пакет: kernel-modules-virtualbox-addition-un-def

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: fixes_for_5.14.patch
Скачать


Index: VirtualBox-6.1.22/src/VBox/Additions/linux/sharedfolders/regops.c
===================================================================
--- VirtualBox-6.1.22.orig/src/VBox/Additions/linux/sharedfolders/regops.c
+++ VirtualBox-6.1.22/src/VBox/Additions/linux/sharedfolders/regops.c
@@ -2126,7 +2126,11 @@ static int vbsf_iter_lock_pages(struct i
     int    rc       = 0;
 
     Assert(iov_iter_count(iter) + pStash->cb > 0);
+#if RTLNX_VER_MAX(5, 14,0)
     if (!(iter->type & ITER_KVEC)) {
+#else
+    if (!iov_iter_is_kvec(iter)) {
+#endif
         /*
          * Do we have a stashed page?
          */
@@ -2373,7 +2377,11 @@ static size_t vbsf_iter_max_span_of_page
 {
     size_t cPages;
 # if RTLNX_VER_MIN(3,16,0)
+# if RTLNX_VER_MAX(5, 14, 0)
     if (iter_is_iovec(iter) || (iter->type & ITER_KVEC)) {
+#else
+    if (iter_is_iovec(iter) || iov_iter_is_kvec(iter)) {
+#endif
 #endif
         const struct iovec *pCurIov    = iter->iov;
         size_t              cLeft      = iter->nr_segs;
@@ -2436,7 +2444,11 @@ static size_t vbsf_iter_max_span_of_page
     } else {
         /* Won't bother with accurate counts for the next two types, just make
            some rough estimates (does pipes have segments?): */
+#if RTLNX_VER_MAX(5, 14,0)
         size_t cSegs = iter->type & ITER_BVEC ? RT_MAX(1, iter->nr_segs) : 1;
+#else
+        size_t cSegs = (iov_iter_type(iter) == ITER_BVEC) ? RT_MAX(1, iter->nr_segs) : 1;
+#endif
         cPages = (iov_iter_count(iter) + (PAGE_SIZE * 2 - 2) * cSegs) >> PAGE_SHIFT;
     }
 # endif
@@ -3793,7 +3805,9 @@ struct address_space_operations vbsf_reg
 #endif
 #if RTLNX_VER_MIN(2,6,24)
     .write_begin    = vbsf_write_begin,
+#if RTLNX_VER_MAX(5, 14, 0)
     .write_end      = simple_write_end,
+#endif
 #elif RTLNX_VER_MIN(2,5,45)
     .prepare_write  = simple_prepare_write,
     .commit_write   = simple_commit_write,
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin