X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=module%2Fzfs%2Fdmu_send.c;h=ae0b36fc6380bd6f7756684218597013bb30cb4a;hb=2959d94a0a53612cc1ca9ce9d17df26c3d69a513;hp=f13cfd316f909f99fc80f5cfed1c9665e3653df4;hpb=60948de1ef976aabaa3630707bcc8b5867508507;p=zfs.git diff --git a/module/zfs/dmu_send.c b/module/zfs/dmu_send.c index f13cfd3..ae0b36f 100644 --- a/module/zfs/dmu_send.c +++ b/module/zfs/dmu_send.c @@ -1337,7 +1337,7 @@ dmu_recv_stream(dmu_recv_cookie_t *drc, vnode_t *vp, offset_t *voffp, ra.vp = vp; ra.voff = *voffp; ra.bufsize = 1<<20; - ra.buf = kmem_alloc(ra.bufsize, KM_SLEEP); + ra.buf = vmem_alloc(ra.bufsize, KM_SLEEP); /* these were verified in dmu_recv_begin */ ASSERT(DMU_GET_STREAM_HDRTYPE(drc->drc_drrb->drr_versioninfo) == @@ -1486,7 +1486,7 @@ out: } } - kmem_free(ra.buf, ra.bufsize); + vmem_free(ra.buf, ra.bufsize); *voffp = ra.voff; return (ra.err); }