lkml.org 
[lkml]   [2006]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: fs/bio.c - Hardcoded sector size ?
    On Thu, 28 Sep 2006 19:22:38 +0100 Roger Gammans wrote:

    > Hi
    >
    > In bio_endio() there is the follow line:-
    >
    > bio->bi_sector += (bytes_done >> 9);
    >
    > and there is a similiar line assuming a 512byte sector in
    > __bio_add_page() .
    >
    > Is this a bug as the the actual block size should be available
    > from bio->bi_bdev->bd_block_size surely - or is some clever code
    > where all block devices have to translate back to 512 byte sectors
    > for bio s.

    Does this answer it for you?

    http://marc.theaimsgroup.com/?l=linux-kernel&m=115542872706154&w=2

    ---
    ~Randy
    -
    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/

    \
     
     \ /
      Last update: 2006-09-29 20:39    [W:3.482 / U:0.048 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site