diff options
author | kib <kib@FreeBSD.org> | 2013-09-17 07:35:26 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2013-09-17 07:35:26 +0000 |
commit | 8ca067efb2693271e173c6f1b3317291d0f831ce (patch) | |
tree | 372c0b5c183e259d2346d80ce9eefc7c361db1d8 /sys/vm/uma_int.h | |
parent | ab92040a7b8c8ba848e3c4910ebd7bbe09832f9f (diff) | |
download | FreeBSD-src-8ca067efb2693271e173c6f1b3317291d0f831ce.zip FreeBSD-src-8ca067efb2693271e173c6f1b3317291d0f831ce.tar.gz |
PG_SLAB no longer serves a useful purpose, since m->object is no
longer abused to store pointer to slab. Remove it.
Reviewed by: alc
Sponsored by: The FreeBSD Foundation
Approved by: re (hrs)
Diffstat (limited to 'sys/vm/uma_int.h')
-rw-r--r-- | sys/vm/uma_int.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/vm/uma_int.h b/sys/vm/uma_int.h index ec88e58..00e8519 100644 --- a/sys/vm/uma_int.h +++ b/sys/vm/uma_int.h @@ -404,15 +404,9 @@ static __inline uma_slab_t vtoslab(vm_offset_t va) { vm_page_t p; - uma_slab_t slab; p = PHYS_TO_VM_PAGE(pmap_kextract(va)); - slab = (uma_slab_t )p->plinks.s.pv; - - if (p->flags & PG_SLAB) - return (slab); - else - return (NULL); + return ((uma_slab_t)p->plinks.s.pv); } static __inline void @@ -422,7 +416,6 @@ vsetslab(vm_offset_t va, uma_slab_t slab) p = PHYS_TO_VM_PAGE(pmap_kextract(va)); p->plinks.s.pv = slab; - p->flags |= PG_SLAB; } /* |