Re: bio_chain: proposed solution for bio_alloc failure and large IO simplification

From: Andrew Morton (akpm@zip.com.au)
Date: Sat Jun 15 2002 - 15:22:50 EST


"Adam J. Richter" wrote:
>
> >- It's tricky to determine how many bvecs are available in
> > a bio. There is no straightforward "how big is it" field
> > in struct bio.
>
> Can't I make a macro to do a table lookup from bio->bi_max?

Not really. If I do

        bio_alloc(GFP_KERNEL, 27);

then I'll get a 32-slot bvec. But presumably, I don't
want to put more than 27 pages into it.

-
-
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 : Sat Jun 15 2002 - 22:00:33 EST