Whamcloud - gitweb
LU-7863 osd-zfs: dmu_prefetch change in ZFS master
[fs/lustre-release.git] / lustre / osd-zfs / osd_index.c
index 4e5a5b4..8c1ffbf 100644 (file)
@@ -1515,10 +1515,8 @@ static void osd_zfs_otable_prefetch(const struct lu_env *env,
                if (unlikely(rc != 0))
                        break;
 
-               /* dmu_prefetch() was exported in 0.6.2, if you use with
-                * an older release, just comment it out - this is an
-                * optimization */
-               dmu_prefetch(dev->od_os, it->mit_prefetched_dnode, 0, 0);
+               osd_dmu_prefetch(dev->od_os, it->mit_prefetched_dnode,
+                                0, 0, 0, ZIO_PRIORITY_ASYNC_READ);
 
                it->mit_prefetched++;
        }