Hi Malahal<br>
<br>
Is there any way to find the last sector of bio. <br>
Is this a correct way to find last sector of bio <br><br>"bio->bi_sector=bio->bi_sector + (bio->bi_size >> 9)-1"<br>
<br>or<br>
<br>bio_for_each_segment(bvec,bio,idx)<br>
{<br>
bio->bi_sector=bio->bi_sector + (bvec->bv_len >> 9) -1;<br>
}<br>
Will this bio->bi_sector point to last sector of bio if bio->bi_vcnt is greater than 1.<br>
<br>
Regards,<br>
Nishant.<br>