Re: [PATCH] 2.5.44-ac3, cciss, more scatter gather elements

From: Jens Axboe (axboe@suse.de)
Date: Fri Oct 25 2002 - 16:31:45 EST


On Fri, Oct 25 2002, Jens Axboe wrote:
> } else {
> new_segment:
> - memset(&sg[nsegs],0,sizeof(struct scatterlist));
> - sg[nsegs].page = bvec->bv_page;
> - sg[nsegs].length = nbytes;
> - sg[nsegs].offset = bvec->bv_offset;
> -
> + sg.page = bvec->bv_page;
> + sg.offset = bvec->bv_offset;
> + sg.length = nbytes;
> + map(q, &sg, nsegs, cookie);
                                if (sgprev)
                                        map(q, sgprev, nsegs, cookie);

of course, and likewise for the cluster check. I'll cut a clean version
tomorrow, I'm out for today..

-- 
Jens Axboe

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Oct 31 2002 - 22:00:29 EST