Subject: Re: lfs_stats.segs_reclaimed always incremented?
To: David Laight <david@l8s.co.uk>
From: David Brownlee <abs@NetBSD.org>
List: tech-kern
Date: 05/25/2005 21:31:44
On Wed, 25 May 2005, David Laight wrote:
> On Wed, May 25, 2005 at 03:05:01AM +0200, Juan RP wrote:
>>>
>>> - ++lfs_stats.segs_reclaimed;
>>> + if (lfs_dostats)
>>> + ++lfs_stats.segs_reclaimed;
>
> Humm... it could easily cost more to do the test than to increment the
> counter......
Though presumably its still useful if you want to be able to
tun stats on and off to measure specific workloads :)
--
David/absolute -- www.NetBSD.org: No hype required --