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/mips | |
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/mips')
-rw-r--r-- | sys/mips/mips/vm_machdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/mips/vm_machdep.c b/sys/mips/mips/vm_machdep.c index 4c2460a..0323bb3 100644 --- a/sys/mips/mips/vm_machdep.c +++ b/sys/mips/mips/vm_machdep.c @@ -540,7 +540,7 @@ sf_buf_alloc(struct vm_page *m, int flags) if (flags & SFB_NOWAIT) break; sf_buf_alloc_want++; - mbstat.sf_allocwait++; + SFSTAT_INC(sf_allocwait); error = msleep(&sf_freelist, &sf_freelist.sf_lock, (flags & SFB_CATCH) ? PCATCH | PVM : PVM, "sfbufa", 0); sf_buf_alloc_want--; |