diff options
author | ae <ae@FreeBSD.org> | 2013-07-15 06:16:57 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2013-07-15 06:16:57 +0000 |
commit | 6f8e41d6cbe4a6159abeaba412a9adbc4bd819ee (patch) | |
tree | 5932d71f2b8a3afd2e76291fe74b70726eac9ee1 /sys/powerpc/booke | |
parent | 1a49123d7477a3a956dfa33644d7f1483b56dbc2 (diff) | |
download | FreeBSD-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/booke')
-rw-r--r-- | sys/powerpc/booke/vm_machdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/booke/vm_machdep.c b/sys/powerpc/booke/vm_machdep.c index 54a0b01..3303794 100644 --- a/sys/powerpc/booke/vm_machdep.c +++ b/sys/powerpc/booke/vm_machdep.c @@ -300,7 +300,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--; |