public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* comment typo for generic_make_request in 2.5.1-pre2?
@ 2001-11-27 20:05 David Mansfield
  2001-11-28  7:33 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: David Mansfield @ 2001-11-27 20:05 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-kernel


Hi Jens et al,

Just looking at the bio changes in pre2 and I came across the comment for 
generic_make_request that says it may change bi_dev and/or bi_rsector.  I 
think the bi_rsector is supposed to be bi_sector (since the former no 
longer exists).  Here's a patch if in fact this is just a typo:

--- ll_rw_blk.c.orig	Tue Nov 27 14:57:40 2001
+++ ll_rw_blk.c	Tue Nov 27 15:02:23 2001
@@ -1041,7 +1041,7 @@
  *
  * generic_make_request and the drivers it calls may use bi_next if this
  * bio happens to be merged with someone else, and may change bi_dev and
- * bi_rsector for remaps as it sees fit.  So the values of these fields
+ * bi_sector for remaps as it sees fit.  So the values of these fields
  * should NOT be depended on after the call to generic_make_request.
  *
  * */

It's really no big deal, but I guess even the comments deserve to be 
correct. Anyway, this stuff is certainly fun reading!

David

-- 
/==============================\
| David Mansfield              |
| david@cobite.com             |
\==============================/



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

end of thread, other threads:[~2001-11-28  7:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-27 20:05 comment typo for generic_make_request in 2.5.1-pre2? David Mansfield
2001-11-28  7:33 ` Jens Axboe

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