]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Widen the vm_page aflags field to 16 bits.
authormarkj <markj@FreeBSD.org>
Mon, 18 Nov 2019 18:22:41 +0000 (18:22 +0000)
committermarkj <markj@FreeBSD.org>
Mon, 18 Nov 2019 18:22:41 +0000 (18:22 +0000)
commitbe16e10a6ff745617e00851f6d86d3bf38f0af81
tree9d15c0997d2793982fc84b26f01b9e70fe3f3734
parent609735ee02f4cfd4aaca3578d8f2561f32291cbf
Widen the vm_page aflags field to 16 bits.

We are now out of aflags bits, whereas the "flags" field only makes use
of five of its sixteen bits, so narrow "flags" to eight bits.  I have no
intention of adding a new aflag in the near future, but would like to
combine the aflags, queue and act_count fields into a single atomically
updated word.  This will allow vm_page_pqstate_cmpset() to become much
simpler and is a step towards eliminating the use of the page lock array
in updating per-page queue state.

The change modifies the layout of struct vm_page, so bump
__FreeBSD_version.

Reviewed by: alc, dougm, jeff, kib
Sponsored by: Netflix, Intel
Differential Revision: https://reviews.freebsd.org/D22397
sys/sys/param.h
sys/vm/vm_page.c
sys/vm/vm_page.h