lkml.org 
[lkml]   [2004]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: news about IDE PIO HIGHMEM bug (was: Re: 2.6.9-mm1)
    > Bartlomiej Zolnierkiewicz wrote:
    >> We have stuct page of the first page and a offset.
    >> We need to obtain struct page of the current page and map it.
    >
    >
    > Opening this question to a wider audience.
    >
    > struct scatterlist gives us struct page*, and an offset+length pair. The struct page* is the _starting_ page of a potentially multi-page run of data.
    >
    > The question: how does one get struct page* for the second, and successive pages in a known-contiguous multi-page run, if one only knows the first page?

    If it's a higher order allocation, just page+1 should be safe. If it just
    happens to be contig, it might cross a discontig boundary, and not obey
    that rule. Very unlikely, but possible.

    M.

    -
    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-03-22 14:07    [W:3.586 / U:0.272 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site