public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] IDE: Do not call bh_phys() on buffers with invalid b_page.
@ 2003-01-29 14:57 Benjamin Herrenschmidt
  2003-01-29 15:00 ` Jens Axboe
  0 siblings, 1 reply; 8+ messages in thread
From: Benjamin Herrenschmidt @ 2003-01-29 14:57 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-kernel

Hi, I just spotted this in the patch (but the code itself have been
there since 2.4.20-pre2).

> -			if (((unsigned long) bh->b_data) < PAGE_SIZE)
> +			if ((unsigned long) bh->b_data < PAGE_SIZE)

Didn't you meant PAGE_OFFSET and not PAGE_SIZE here ? I fail to see why
it would make any sense to compare a virtual address to PAGE_SIZE ;)

Ben.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-01-29 15:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-29 14:57 [PATCH] IDE: Do not call bh_phys() on buffers with invalid b_page Benjamin Herrenschmidt
2003-01-29 15:00 ` Jens Axboe
2003-01-29 15:20   ` Benjamin Herrenschmidt
2003-01-29 15:22     ` Jens Axboe
2003-01-29 15:26       ` Benjamin Herrenschmidt
2003-01-29 15:38         ` Jens Axboe
2003-01-29 15:44           ` Benjamin Herrenschmidt
2003-01-29 15:47             ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox