Re: Reading page from given block device

Andrew Morton (akpm@zip.com.au)
Wed, 08 May 2002 14:30:36 -0700


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/


s A. Clinton: "Re: Fwd: Re: bug in tmpfs"
  • Maybe in reply to: Pavel Machek: "Reading page from given block device"
  • Next in thread: Andrew Morton: "Re: Reading page from given block device"