vm_object.c (d899be7d43d8df9cb485af5705e2724165a461c7) vm_object.c (f40cb1c6456a66669f6c75d92435b1c1b951387f)
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

2194 return (TRUE);
2195}
2196
2197void
2198vm_object_set_writeable_dirty(vm_object_t object)
2199{
2200
2201 VM_OBJECT_ASSERT_WLOCKED(object);
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

2194 return (TRUE);
2195}
2196
2197void
2198vm_object_set_writeable_dirty(vm_object_t object)
2199{
2200
2201 VM_OBJECT_ASSERT_WLOCKED(object);
2202 if (object->type != OBJT_VNODE)
2202 if (object->type != OBJT_VNODE) {
2203 if ((object->flags & OBJ_TMPFS_NODE) != 0) {
2204 KASSERT(object->type == OBJT_SWAP, ("non-swap tmpfs"));
2205 vm_object_set_flag(object, OBJ_TMPFS_DIRTY);
2206 }
2203 return;
2207 return;
2208 }
2204 object->generation++;
2205 if ((object->flags & OBJ_MIGHTBEDIRTY) != 0)
2206 return;
2207 vm_object_set_flag(object, OBJ_MIGHTBEDIRTY);
2208}
2209
2210/*
2211 * vm_object_unwire:

--- 304 unchanged lines hidden ---
2209 object->generation++;
2210 if ((object->flags & OBJ_MIGHTBEDIRTY) != 0)
2211 return;
2212 vm_object_set_flag(object, OBJ_MIGHTBEDIRTY);
2213}
2214
2215/*
2216 * vm_object_unwire:

--- 304 unchanged lines hidden ---