summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_mbuf.c
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2013-07-15 06:16:57 +0000
committerae <ae@FreeBSD.org>2013-07-15 06:16:57 +0000
commit6f8e41d6cbe4a6159abeaba412a9adbc4bd819ee (patch)
tree5932d71f2b8a3afd2e76291fe74b70726eac9ee1 /sys/kern/kern_mbuf.c
parent1a49123d7477a3a956dfa33644d7f1483b56dbc2 (diff)
downloadFreeBSD-src-6f8e41d6cbe4a6159abeaba412a9adbc4bd819ee.zip
FreeBSD-src-6f8e41d6cbe4a6159abeaba412a9adbc4bd819ee.tar.gz
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
Diffstat (limited to 'sys/kern/kern_mbuf.c')
-rw-r--r--sys/kern/kern_mbuf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_mbuf.c b/sys/kern/kern_mbuf.c
index 8243a81..0b5b5f8 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);
OpenPOWER on IntegriCloud