lkml.org 
[lkml]   [2002]   [Oct]   [23]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
DateWed, 23 Oct 2002 11:13:54 +0200
FromJan Kasprzak <>
SubjectRe: 2.4.20-pre11 /proc/partitions read
Christoph Hellwig wrote:
: I rather suspect it's the following bug (introduce by me, but not
: depend on CONFIG_BLK_STATS):
: 
: --- 1.23/drivers/block/genhd.c	Wed Aug 21 10:03:48 2002
: +++ edited/drivers/block/genhd.c	Tue Oct 22 20:43:16 2002
: @@ -155,13 +155,14 @@
: 
:  #ifdef CONFIG_PROC_FS
:  /* iterator */
: -static void *part_start(struct seq_file *s, loff_t *pos)
: +static void *part_start(struct seq_file *s, loff_t *ppos)
:  {
:  	struct gendisk *gp;
: +	loff_t pos = *ppos;
: 
:  	read_lock(&gendisk_lock);
:  	for (gp = gendisk_head; gp; gp = gp->next)
: -		if (!*pos--)
: +		if (!pos--)
:  			return gp;
:  	return NULL;
:  }

	Yes, this patch fixes my problem. Thanks!

-Yenya

-- 
| Jan "Yenya" Kasprzak  <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839      Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/   Czech Linux Homepage: http://www.linux.cz/ |
|-- If you start doing things because you hate others and want to screw  --|
|-- them over the end result is bad.   --Linus Torvalds to the BBC News  --|
-
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 12:30    [W:0.413 / U:0.180 seconds]
©2003-2008 Jasper Spaans