]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/dma/ioat/dma_v2.c
ioat: convert to circ_buf
[net-next-2.6.git] / drivers / dma / ioat / dma_v2.c
index b5ae56c211e6edfd6b1f821f00a872381b309e58..b6699a350989ed47ee3bd91cb8afaa03667dd66a 100644 (file)
@@ -553,7 +553,7 @@ bool reshape_ring(struct ioat2_dma_chan *ioat, int order)
         */
        struct ioat_chan_common *chan = &ioat->base;
        struct dma_chan *c = &chan->common;
-       const u16 curr_size = ioat2_ring_mask(ioat) + 1;
+       const u16 curr_size = ioat2_ring_size(ioat);
        const u16 active = ioat2_ring_active(ioat);
        const u16 new_size = 1 << order;
        struct ioat_ring_ent **ring;