[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [dm-devel] 2.6.4-udm1
- From: Christophe Saout <christophe saout de>
- To: device-mapper development <dm-devel redhat com>
- Subject: Re: [dm-devel] 2.6.4-udm1
- Date: Mon, 15 Mar 2004 21:08:26 +0100
On Mon, Mar 15, 2004 at 01:51:32PM -0600, Kevin Corry wrote:
> kcopyd_put_pages() does not walk the entire list of specified pages (it stops
> at the second-to-last one). Thus, the nr_free_pages value is off by one. Fix
> this by incrementing nr_free_pages once more after the loop completes.
>
> --- diff/drivers/md/kcopyd.c 2004-03-15 13:41:59.000000000 -0600
> +++ source/drivers/md/kcopyd.c 2004-03-15 13:40:41.000000000 -0600
> @@ -100,6 +100,7 @@
> for (cursor = pl; cursor->next; cursor = cursor->next)
Why not simply do for (cursor = pl; cursor; cursor = cursor->next)?
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]