-----Original Message-----
From: <[email protected]> on behalf of Mateusz Guzik <[email protected]> Date: 2016-01-20, Wednesday at 17:04 To: <[email protected]>, <[email protected]>, <[email protected]> Subject: svn commit: r294475 - head/sys/kern >Author: mjg >Date: Thu Jan 21 01:04:03 2016 >New Revision: 294475 >URL: https://svnweb.freebsd.org/changeset/base/294475 > >Log: > cache: use counter(9) API to maintain statistics > >... > >Modified: > head/sys/kern/vfs_cache.c > >Modified: head/sys/kern/vfs_cache.c >============================================================================== >--- head/sys/kern/vfs_cache.c Thu Jan 21 00:42:48 2016 (r294474) >+++ head/sys/kern/vfs_cache.c Thu Jan 21 01:04:03 2016 (r294475) > >... > > >+ numcalls = counter_u64_alloc(M_WAITOK); >+ dothits = counter_u64_alloc(M_WAITOK); >+ dotdothits = counter_u64_alloc(M_WAITOK); > >... > ISTR there's an API for creating a batch of counters; that might be cleaner than creating a dozen+ individually? -Ravi (rpokala@) _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "[email protected]"
