Deleted Added
full compact
vm_meter.c (21673) vm_meter.c (21754)
1/*
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)vm_meter.c 8.4 (Berkeley) 1/4/94
1/*
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)vm_meter.c 8.4 (Berkeley) 1/4/94
34 * $FreeBSD: head/sys/vm/vm_meter.c 21673 1997-01-14 07:20:47Z jkh $
34 * $FreeBSD: head/sys/vm/vm_meter.c 21754 1997-01-16 04:16:22Z dyson $
35 */
36
37#include <sys/param.h>
38#include <sys/proc.h>
39#include <sys/systm.h>
40#include <sys/kernel.h>
41#include <sys/vmmeter.h>
42#include <sys/queue.h>

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

174 break;
175 }
176 /*
177 * Note active objects.
178 */
179 paging = 0;
180 for (map = &p->p_vmspace->vm_map, entry = map->header.next;
181 entry != &map->header; entry = entry->next) {
35 */
36
37#include <sys/param.h>
38#include <sys/proc.h>
39#include <sys/systm.h>
40#include <sys/kernel.h>
41#include <sys/vmmeter.h>
42#include <sys/queue.h>

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

174 break;
175 }
176 /*
177 * Note active objects.
178 */
179 paging = 0;
180 for (map = &p->p_vmspace->vm_map, entry = map->header.next;
181 entry != &map->header; entry = entry->next) {
182 if (entry->is_a_map || entry->is_sub_map ||
182 if ((entry->eflags & (MAP_ENTRY_IS_A_MAP|MAP_ENTRY_IS_SUB_MAP)) ||
183 entry->object.vm_object == NULL)
184 continue;
185 entry->object.vm_object->flags |= OBJ_ACTIVE;
186 paging |= entry->object.vm_object->paging_in_progress;
187 }
188 if (paging)
189 totalp->t_pw++;
190 }

--- 28 unchanged lines hidden ---
183 entry->object.vm_object == NULL)
184 continue;
185 entry->object.vm_object->flags |= OBJ_ACTIVE;
186 paging |= entry->object.vm_object->paging_in_progress;
187 }
188 if (paging)
189 totalp->t_pw++;
190 }

--- 28 unchanged lines hidden ---