freebsd-dev/sys/fs/tmpfs
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
..
tmpfs_fifoops.c tmpfs: restore atime updates for reads from page cache. 2020-09-16 21:28:18 +00:00
tmpfs_fifoops.h sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
tmpfs_subr.c Add OBJT_SWAP_TMPFS pager 2021-05-07 17:08:03 +03:00
tmpfs_vfsops.c Add OBJT_SWAP_TMPFS pager 2021-05-07 17:08:03 +03:00
tmpfs_vnops.c Add OBJT_SWAP_TMPFS pager 2021-05-07 17:08:03 +03:00
tmpfs_vnops.h tmpfs: add VOP_STAT handler 2020-08-07 23:07:47 +00:00
tmpfs.h tmpfs: add support for lockless symlink lookup 2021-01-23 15:04:43 +00:00