freebsd-dev/sys/fs/procfs
Konstantin Belousov 4b8365d752 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
2021-05-07 17:08:03 +03:00
..
procfs_dbregs.c Plug memory disclosures via ptrace(2). 2018-12-03 20:54:17 +00:00
procfs_fpregs.c Plug memory disclosures via ptrace(2). 2018-12-03 20:54:17 +00:00
procfs_map.c Add OBJT_SWAP_TMPFS pager 2021-05-07 17:08:03 +03:00
procfs_mem.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
procfs_note.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
procfs_osrel.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
procfs_regs.c Plug memory disclosures via ptrace(2). 2018-12-03 20:54:17 +00:00
procfs_rlimit.c fs: clean up empty lines in .c and .h files 2020-09-01 21:18:40 +00:00
procfs_status.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
procfs_type.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
procfs.c fs: clean up empty lines in .c and .h files 2020-09-01 21:18:40 +00:00
procfs.h Retire procfs-based process debugging. 2020-04-01 19:22:09 +00:00