diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2021-05-01 01:18:00 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-05-07 14:08:03 +0000 |
| commit | 4b8365d752ef48c14f0584d21b719bb386a7be82 (patch) | |
| tree | 0dc1ce59f80d077b8717717dffb8671c1ec2236e /libexec/tests | |
| parent | 0d2dfc6fed03c36f7c4a9bb2a4223028f3b4431b (diff) | |
Add OBJT_SWAP_TMPFS pager
This is OBJT_SWAP pager, specialized for tmpfs. Right now, both swap pager
and generic vm code have to explicitly handle swap objects which are tmpfs
vnode v_object, in the special ways. Replace (almost) all such places with
proper methods.
Since VM still needs a notion of the 'swap object', regardless of its
use, add yet another type-classification flag OBJ_SWAP. Set it in
vm_object_allocate() where other type-class flags are set.
This change almost completely eliminates the knowledge of tmpfs from VM,
and opens a way to make OBJT_SWAP_TMPFS loadable from tmpfs.ko.
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 'libexec/tests')
0 files changed, 0 insertions, 0 deletions
