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/i386/i386 | |
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/i386/i386')
-rw-r--r-- | sys/i386/i386/vm_machdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/i386/vm_machdep.c b/sys/i386/i386/vm_machdep.c index c462b4c..92e0f52 100644 --- a/sys/i386/i386/vm_machdep.c +++ b/sys/i386/i386/vm_machdep.c @@ -833,7 +833,7 @@ sf_buf_alloc(struct vm_page *m, int flags) if (flags & SFB_NOWAIT) 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--; |