lkml.org 
[lkml]   [2007]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 1/4] ps3disk: use correct bio vector size
    ps3disk: use correct bio vector size

    This fixes the O_DIRECT corruptions, as reported by Olaf Hering (triggered by
    e.g. parted >= 1.8.0).

    Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
    ---
    drivers/block/ps3disk.c | 2 +-
    1 files changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/block/ps3disk.c
    +++ b/drivers/block/ps3disk.c
    @@ -108,7 +108,7 @@ static void ps3disk_scatter_gather(struc
    __func__, __LINE__, i, bio_segments(bio),
    bio_sectors(bio), sector);
    bio_for_each_segment(bvec, bio, j) {
    - size = bio_cur_sectors(bio)*KERNEL_SECTOR_SIZE;
    + size = bvec->bv_len;
    buf = __bio_kmap_atomic(bio, j, KM_IRQ0);
    if (gather)
    memcpy(dev->bounce_buf+offset, buf, size);
    With kind regards,

    Geert Uytterhoeven
    Software Architect

    Sony Network and Software Technology Center Europe
    The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium

    Phone: +32 (0)2 700 8453
    Fax: +32 (0)2 700 8622
    E-mail: Geert.Uytterhoeven@sonycom.com
    Internet: http://www.sony-europe.com/

    Sony Network and Software Technology Center Europe
    A division of Sony Service Centre (Europe) N.V.
    Registered office: Technologielaan 7 · B-1840 Londerzeel · Belgium
    VAT BE 0413.825.160 · RPR Brussels
    Fortis Bank Zaventem · Swift GEBABEBB08A · IBAN BE39001382358619
    \
     
     \ /
      Last update: 2007-07-19 16:11    [W:0.031 / U:2.664 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site