aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_object.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-05-01 00:43:08 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-05-07 14:08:03 +0000
commitc23c555bc15ce1523b95fb8da99ae77c0bb0977e (patch)
tree9bdea362cf6211004cbf46c5216c4f50e944afc1 /sys/vm/vm_object.h
parent180bcaa46c5d297d137749258b23593d578d76a5 (diff)
downloadsrc-c23c555bc15ce1523b95fb8da99ae77c0bb0977e.tar.gz
src-c23c555bc15ce1523b95fb8da99ae77c0bb0977e.zip
Add pgo_mightbedirty method
Used to implement vm_object_mightbedirty() Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D30070
Diffstat (limited to 'sys/vm/vm_object.h')
-rw-r--r--sys/vm/vm_object.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h
index 93380d904526..c7bbec0e7a86 100644
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -330,21 +330,6 @@ vm_object_reserv(vm_object_t object)
return (false);
}
-static __inline bool
-vm_object_mightbedirty(vm_object_t object)
-{
-
- if (object->type != OBJT_VNODE) {
- if ((object->flags & OBJ_TMPFS_NODE) == 0)
- return (false);
-#ifdef KASSERT
- KASSERT(object->type == OBJT_SWAP,
- ("TMPFS_NODE obj %p is not swap", object));
-#endif
- }
- return (object->generation != object->cleangeneration);
-}
-
void vm_object_clear_flag(vm_object_t object, u_short bits);
void vm_object_pip_add(vm_object_t object, short i);
void vm_object_pip_wakeup(vm_object_t object);
@@ -379,6 +364,8 @@ void vm_object_destroy (vm_object_t);
void vm_object_terminate (vm_object_t);
void vm_object_set_writeable_dirty (vm_object_t);
void vm_object_set_writeable_dirty_(vm_object_t object);
+bool vm_object_mightbedirty(vm_object_t object);
+bool vm_object_mightbedirty_(vm_object_t object);
void vm_object_init (void);
int vm_object_kvme_type(vm_object_t object, struct vnode **vpp);
void vm_object_madvise(vm_object_t, vm_pindex_t, vm_pindex_t, int);