diff options
author | jhb <jhb@FreeBSD.org> | 2001-07-04 20:14:59 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-07-04 20:14:59 +0000 |
commit | 0b11844c1ae0d1ee76a6cce2af18b750a7096951 (patch) | |
tree | c1b390edbad5cbbabbeabb1de1bae5282b0c1e2e /sys/nfs | |
parent | 27372749e2aebe9bbc0deb242113d9e0403b6aa1 (diff) | |
download | FreeBSD-src-0b11844c1ae0d1ee76a6cce2af18b750a7096951.zip FreeBSD-src-0b11844c1ae0d1ee76a6cce2af18b750a7096951.tar.gz |
- Sort includes.
- Update vmmeter statistics for vnode pagein/pageouts in getpages/putpages.
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_bio.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c index cadd2fb..3bcdb32 100644 --- a/sys/nfs/nfs_bio.c +++ b/sys/nfs/nfs_bio.c @@ -40,14 +40,15 @@ #include <sys/param.h> #include <sys/systm.h> -#include <sys/resourcevar.h> -#include <sys/signalvar.h> -#include <sys/proc.h> #include <sys/bio.h> #include <sys/buf.h> -#include <sys/vnode.h> -#include <sys/mount.h> #include <sys/kernel.h> +#include <sys/mount.h> +#include <sys/proc.h> +#include <sys/resourcevar.h> +#include <sys/signalvar.h> +#include <sys/vmmeter.h> +#include <sys/vnode.h> #include <vm/vm.h> #include <vm/vm_extern.h> @@ -160,6 +161,8 @@ nfs_getpages(ap) kva = (vm_offset_t) bp->b_data; pmap_qenter(kva, pages, npages); + cnt.v_vnodein++; + cnt.v_vnodepgsin += npages; iov.iov_base = (caddr_t) kva; iov.iov_len = count; @@ -313,6 +316,8 @@ nfs_putpages(ap) kva = (vm_offset_t) bp->b_data; pmap_qenter(kva, pages, npages); + cnt.v_vnodeout++; + cnt.v_vnodepgsout += count; iov.iov_base = (caddr_t) kva; iov.iov_len = count; |