default_pager.c (274375) | default_pager.c (284100) |
---|---|
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 --- 24 unchanged lines hidden (view full) --- 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 40#include <sys/cdefs.h> | 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 --- 24 unchanged lines hidden (view full) --- 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 40#include <sys/cdefs.h> |
41__FBSDID("$FreeBSD: stable/10/sys/vm/default_pager.c 274375 2014-11-11 11:06:10Z kib $"); | 41__FBSDID("$FreeBSD: stable/10/sys/vm/default_pager.c 284100 2015-06-06 20:37:40Z jhb $"); |
42 43#include <sys/param.h> 44#include <sys/systm.h> 45#include <sys/lock.h> 46#include <sys/proc.h> 47#include <sys/resourcevar.h> 48#include <sys/rwlock.h> 49 --- 58 unchanged lines hidden (view full) --- 108 */ 109static void 110default_pager_dealloc(object) 111 vm_object_t object; 112{ 113 /* 114 * OBJT_DEFAULT objects have no special resources allocated to them. 115 */ | 42 43#include <sys/param.h> 44#include <sys/systm.h> 45#include <sys/lock.h> 46#include <sys/proc.h> 47#include <sys/resourcevar.h> 48#include <sys/rwlock.h> 49 --- 58 unchanged lines hidden (view full) --- 108 */ 109static void 110default_pager_dealloc(object) 111 vm_object_t object; 112{ 113 /* 114 * OBJT_DEFAULT objects have no special resources allocated to them. 115 */ |
116 object->type = OBJT_DEAD; |
|
116} 117 118/* 119 * Load pages from backing store. Since OBJT_DEFAULT is converted to 120 * OBJT_SWAP at the time a swap-backed vm_page_t is freed, we will never 121 * see a vm_page with assigned swap here. 122 */ 123static int --- 45 unchanged lines hidden --- | 117} 118 119/* 120 * Load pages from backing store. Since OBJT_DEFAULT is converted to 121 * OBJT_SWAP at the time a swap-backed vm_page_t is freed, we will never 122 * see a vm_page with assigned swap here. 123 */ 124static int --- 45 unchanged lines hidden --- |