diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2021-06-15 16:38:10 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2021-06-15 16:38:10 +0000 |
commit | 5d6c16d5d85107b9af040001d9b6226ba5c081c1 (patch) | |
tree | 6e5d2fb097daf2dc19f70fc597a743bcc1b6acca /sys/uvm/uvm_km.c | |
parent | 5922d1764de33186122539ceaa19c8970cecc243 (diff) |
Use a macro to assert that given uobjs correspond to anonymous objects.
Reduce the difference with NetBSD.
ok kettenis@
Diffstat (limited to 'sys/uvm/uvm_km.c')
-rw-r--r-- | sys/uvm/uvm_km.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_km.c b/sys/uvm/uvm_km.c index 84b4e7167cc..157a6f85841 100644 --- a/sys/uvm/uvm_km.c +++ b/sys/uvm/uvm_km.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_km.c,v 1.144 2021/05/16 15:10:20 deraadt Exp $ */ +/* $OpenBSD: uvm_km.c,v 1.145 2021/06/15 16:38:09 mpi Exp $ */ /* $NetBSD: uvm_km.c,v 1.42 2001/01/14 02:10:01 thorpej Exp $ */ /* @@ -246,7 +246,7 @@ uvm_km_pgremove(struct uvm_object *uobj, vaddr_t start, vaddr_t end) int slot; int swpgonlydelta = 0; - KASSERT(uobj->pgops == &aobj_pager); + KASSERT(UVM_OBJ_IS_AOBJ(uobj)); for (curoff = start ; curoff < end ; curoff += PAGE_SIZE) { pp = uvm_pagelookup(uobj, curoff); |