lkml.org 
[lkml]   [2002]   [Apr]   [16]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 16 Apr 2002 20:01:47 +0200
FromAndrea Arcangeli <>
SubjectRe: [RFC] Patch: aliasing bug in blockdev-in-pagecache?
On Sat, Apr 13, 2002 at 11:59:48PM +0100, Stephen C. Tweedie wrote:
> --- fs/buffer.c.~1~	Fri Apr 12 17:59:09 2002
> +++ fs/buffer.c	Sat Apr 13 21:09:36 2002
> @@ -1902,9 +1902,14 @@
>  	}
> 
>  	/* Stage 3: start the IO */
> -	for (i = 0; i < nr; i++)
> -		submit_bh(READ, arr[i]);
> -
> +	for (i = 0; i < nr; i++) {
> +		struct buffer_head * bh = arr[i];
> +		if (buffer_uptodate(bh))
> +			end_buffer_io_async(bh, 1);
> +		else
> +			submit_bh(READ, bh);
> +	}
> +	
>  	return 0;
>  }

looks fine from my part too, thanks!

Andrea
-
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:22    [from the cache]
©2003-2008