diff options
author | Andrey V. Elsukov <ae@FreeBSD.org> | 2013-07-15 06:16:57 +0000 |
---|---|---|
committer | Andrey V. Elsukov <ae@FreeBSD.org> | 2013-07-15 06:16:57 +0000 |
commit | 05d1f5bce0130b3220e260ca133b58cfa10a22a8 (patch) | |
tree | 5932d71f2b8a3afd2e76291fe74b70726eac9ee1 /sys/kern/kern_mbuf.c | |
parent | 47d9f3f4c737e9dfabe738612f4d713bff751587 (diff) | |
download | src-05d1f5bce0130b3220e260ca133b58cfa10a22a8.tar.gz src-05d1f5bce0130b3220e260ca133b58cfa10a22a8.zip |
Introduce new structure sfstat for collecting sendfile's statistics
and remove corresponding fields from struct mbstat. Use PCPU counters
and SFSTAT_INC() macro for update these statistics.
Discussed with: glebius
Notes
Notes:
svn path=/head/; revision=253351
Diffstat (limited to 'sys/kern/kern_mbuf.c')
-rw-r--r-- | sys/kern/kern_mbuf.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_mbuf.c b/sys/kern/kern_mbuf.c index 8243a8126d52..0b5b5f848922 100644 --- a/sys/kern/kern_mbuf.c +++ b/sys/kern/kern_mbuf.c @@ -401,8 +401,6 @@ mbuf_init(void *dummy) mbstat.m_numtypes = MT_NTYPES; mbstat.m_mcfail = mbstat.m_mpfail = 0; - mbstat.sf_iocnt = 0; - mbstat.sf_allocwait = mbstat.sf_allocfail = 0; } SYSINIT(mbuf, SI_SUB_MBUF, SI_ORDER_FIRST, mbuf_init, NULL); |