Re: [RFC] [PATCH] VM & VFS changes

From: Jake Burkholder <jake_at_locore.ca>
Date: Sat, 04 Jun 2005 13:31:37 -0400
Andre Guibert de Bruet wrote:

> Hi,
>
> I would like to present a unified set of VM and VFS diffs for wider 
> scrutiny and testing. I have been running these diffs since May 10th 
> across daily reboots with no issues.
>
>
[...]

>Index: vm/swap_pager.c
>===================================================================
>RCS file: /home/ncvs/src/sys/vm/swap_pager.c,v
>retrieving revision 1.273
>diff -u -r1.273 swap_pager.c
>--- vm/swap_pager.c	20 May 2005 21:26:05 -0000	1.273
>+++ vm/swap_pager.c	24 May 2005 02:21:30 -0000
>_at__at_ -2193,6 +2193,60 _at__at_
> 	return (error);
> }
>  
>
[...]

> 
>
>+
>+		mtx_lock(&sw_dev_mtx);
>+		TAILQ_REMOVE(&swtailq, sp, sw_list);
>+
>+		sp = TAILQ_FIRST(&swtailq);
>+		free(sp, M_VMPGDATA);
>+	}
>  
>
It looks like the free should be before sp = TAILQ_FIRST() instead of after.

Jake
Received on Sat Jun 04 2005 - 15:31:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:35 UTC