Re: Reading page from given block device

From: Andrew Morton (akpm@zip.com.au)
Date: Wed May 08 2002 - 16:30:36 EST


Andrew Morton wrote:
>
> ..
> > memcpy(buf, bh->b_data, PAGE_SIZE);
>
> You'll need to kmap bh->b_page before copying the data.

No you won't. blockdev mappings don't use highmem.

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



This archive was generated by hypermail 2b29 : Tue May 14 2002 - 12:00:10 EST