Deleted Added
full compact
vm_reserv.c (215508) vm_reserv.c (217916)
1/*-
2 * Copyright (c) 2002-2006 Rice University
3 * Copyright (c) 2007-2008 Alan L. Cox <alc@cs.rice.edu>
4 * All rights reserved.
5 *
6 * This software was developed for the FreeBSD Project by Alan L. Cox,
7 * Olivier Crameri, Peter Druschel, Sitaram Iyer, and Juan Navarro.
8 *

--- 20 unchanged lines hidden (view full) ---

29 * POSSIBILITY OF SUCH DAMAGE.
30 */
31
32/*
33 * Superpage reservation management module
34 */
35
36#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2002-2006 Rice University
3 * Copyright (c) 2007-2008 Alan L. Cox <alc@cs.rice.edu>
4 * All rights reserved.
5 *
6 * This software was developed for the FreeBSD Project by Alan L. Cox,
7 * Olivier Crameri, Peter Druschel, Sitaram Iyer, and Juan Navarro.
8 *

--- 20 unchanged lines hidden (view full) ---

29 * POSSIBILITY OF SUCH DAMAGE.
30 */
31
32/*
33 * Superpage reservation management module
34 */
35
36#include <sys/cdefs.h>
37__FBSDID("$FreeBSD: head/sys/vm/vm_reserv.c 215508 2010-11-19 04:30:33Z mlaier $");
37__FBSDID("$FreeBSD: head/sys/vm/vm_reserv.c 217916 2011-01-27 00:34:12Z mdf $");
38
39#include "opt_vm.h"
40
41#include <sys/param.h>
42#include <sys/kernel.h>
43#include <sys/lock.h>
44#include <sys/malloc.h>
45#include <sys/mutex.h>

--- 131 unchanged lines hidden (view full) ---

177 */
178static int
179sysctl_vm_reserv_partpopq(SYSCTL_HANDLER_ARGS)
180{
181 struct sbuf sbuf;
182 vm_reserv_t rv;
183 int counter, error, level, unused_pages;
184
38
39#include "opt_vm.h"
40
41#include <sys/param.h>
42#include <sys/kernel.h>
43#include <sys/lock.h>
44#include <sys/malloc.h>
45#include <sys/mutex.h>

--- 131 unchanged lines hidden (view full) ---

177 */
178static int
179sysctl_vm_reserv_partpopq(SYSCTL_HANDLER_ARGS)
180{
181 struct sbuf sbuf;
182 vm_reserv_t rv;
183 int counter, error, level, unused_pages;
184
185 error = sysctl_wire_old_buffer(req, 0);
186 if (error != 0)
187 return (error);
185 sbuf_new_for_sysctl(&sbuf, NULL, 128, req);
186 sbuf_printf(&sbuf, "\nLEVEL SIZE NUMBER\n\n");
187 for (level = -1; level <= VM_NRESERVLEVEL - 2; level++) {
188 counter = 0;
189 unused_pages = 0;
190 mtx_lock(&vm_page_queue_free_mtx);
191 TAILQ_FOREACH(rv, &vm_rvq_partpop/*[level]*/, partpopq) {
192 counter++;

--- 535 unchanged lines hidden ---
188 sbuf_new_for_sysctl(&sbuf, NULL, 128, req);
189 sbuf_printf(&sbuf, "\nLEVEL SIZE NUMBER\n\n");
190 for (level = -1; level <= VM_NRESERVLEVEL - 2; level++) {
191 counter = 0;
192 unused_pages = 0;
193 mtx_lock(&vm_page_queue_free_mtx);
194 TAILQ_FOREACH(rv, &vm_rvq_partpop/*[level]*/, partpopq) {
195 counter++;

--- 535 unchanged lines hidden ---