default_pager.c (76827) | default_pager.c (79224) |
---|---|
1/* 2 * Copyright (c) 1995, David Greenman 3 * 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 --- 22 unchanged lines hidden (view full) --- 31 * The default pager is responsible for supplying backing store to unbacked 32 * storage. The backing store is usually swap so we just fall through to 33 * the swap routines. However, since swap metadata has not been assigned, 34 * the swap routines assign and manage the swap backing store through the 35 * vm_page->swapblk field. The object is only converted when the page is 36 * physically freed after having been cleaned and even then vm_page->swapblk 37 * is maintained whenever a resident page also has swap backing store. 38 * | 1/* 2 * Copyright (c) 1995, David Greenman 3 * 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 --- 22 unchanged lines hidden (view full) --- 31 * The default pager is responsible for supplying backing store to unbacked 32 * storage. The backing store is usually swap so we just fall through to 33 * the swap routines. However, since swap metadata has not been assigned, 34 * the swap routines assign and manage the swap backing store through the 35 * vm_page->swapblk field. The object is only converted when the page is 36 * physically freed after having been cleaned and even then vm_page->swapblk 37 * is maintained whenever a resident page also has swap backing store. 38 * |
39 * $FreeBSD: head/sys/vm/default_pager.c 76827 2001-05-19 01:28:09Z alfred $ | 39 * $FreeBSD: head/sys/vm/default_pager.c 79224 2001-07-04 16:20:28Z dillon $ |
40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/lock.h> | 40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/lock.h> |
45#include <sys/proc.h> |
|
45#include <sys/mutex.h> 46 47#include <vm/vm.h> 48#include <vm/vm_object.h> 49#include <vm/vm_page.h> 50#include <vm/vm_pager.h> 51#include <vm/vm_zone.h> 52#include <vm/swap_pager.h> --- 109 unchanged lines hidden --- | 46#include <sys/mutex.h> 47 48#include <vm/vm.h> 49#include <vm/vm_object.h> 50#include <vm/vm_page.h> 51#include <vm/vm_pager.h> 52#include <vm/vm_zone.h> 53#include <vm/swap_pager.h> --- 109 unchanged lines hidden --- |