default_pager.c (58634) | default_pager.c (58705) |
---|---|
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 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in the 12 * documentation and/or other materials provided with the distribution. 13 * 3. All advertising materials mentioning features or use of this software | 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 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in the 12 * documentation and/or other materials provided with the distribution. 13 * 3. All advertising materials mentioning features or use of this software |
14 * must display the following acknowledgment: | 14 * must display the following acknowledgement: |
15 * This product includes software developed by David Greenman. 16 * 4. The name of the author may not be used to endorse or promote products 17 * derived from this software without specific prior written permission. 18 * 19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE --- 8 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 * | 15 * This product includes software developed by David Greenman. 16 * 4. The name of the author may not be used to endorse or promote products 17 * derived from this software without specific prior written permission. 18 * 19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE --- 8 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 58634 2000-03-26 15:20:23Z charnier $ | 39 * $FreeBSD: head/sys/vm/default_pager.c 58705 2000-03-27 20:41:17Z charnier $ |
40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44 45#include <vm/vm.h> 46#include <vm/vm_object.h> 47#include <vm/vm_page.h> --- 111 unchanged lines hidden --- | 40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44 45#include <vm/vm.h> 46#include <vm/vm_object.h> 47#include <vm/vm_page.h> --- 111 unchanged lines hidden --- |