lkml.org 
[lkml]   [2005]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] [46/48] Suspend2 2.1.9.8 for 2.6.12: 622-swapwriter.patch
    Hi Nigel,

    > diff -ruNp 623-generic-block-io.patch-old/kernel/power/suspend_block_io.c 623-generic-block-io.patch-new/kernel/power/suspend_block_io.c
    > --- 623-generic-block-io.patch-old/kernel/power/suspend_block_io.c 1970-01-01 10:00:00.000000000 +1000
    > +++ 623-generic-block-io.patch-new/kernel/power/suspend_block_io.c 2005-07-05 23:48:59.000000000 +1000
    > @@ -0,0 +1,817 @@
    > +struct io_info {
    > + struct bio * sys_struct;
    > + long block[PAGE_SIZE/512];

    Aah, but for this you should use block_size(io_info->dev) instead. No
    need to mess with sector sizes. Why is this long by the way?
    PAGE_SIZE/512 is block size in bytes.

    > + struct page * buffer_page;
    > + struct page * data_page;
    > + unsigned long flags;
    > + struct block_device * dev;
    > + struct list_head list;
    > + int readahead_index;
    > + struct work_struct work;
    > +};

    Pekka
    -
    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: 2005-07-07 15:44    [W:4.141 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site