summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/aim
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/powerpc/aim
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/powerpc/aim')
-rw-r--r--sys/powerpc/aim/vm_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/aim/vm_machdep.c b/sys/powerpc/aim/vm_machdep.c
index 8deb821..785f22a 100644
--- a/sys/powerpc/aim/vm_machdep.c
+++ b/sys/powerpc/aim/vm_machdep.c
@@ -299,7 +299,7 @@ sf_buf_alloc(struct vm_page *m, int flags)
goto done;
sf_buf_alloc_want++;
- mbstat.sf_allocwait++;
+ SFSTAT_INC(sf_allocwait);
error = msleep(&sf_buf_freelist, &sf_buf_lock,
(flags & SFB_CATCH) ? PCATCH | PVM : PVM, "sfbufa", 0);
sf_buf_alloc_want--;
OpenPOWER on IntegriCloud