freebsd-src/sys/fs
Konstantin Belousov d9dc64f158 tmpfs: make vm_object point to the tmpfs node instead of vnode
The vnode could be reclaimed and allocated again during the lifecycle of
the node, but the node cannot.  Also, referencing the node would allow
to reach it and tmpfs mount data from the object, regardless of the
state of the possibly absent vnode.

Still use swp_tmpfs for back-pointer, instead of using handle. Use of
named swap objects would incur taking the sw_alloc_sx on node allocation
and deallocation.

swp_tmpfs is renamed to swp_priv to remove the last bit of tmpfs in vm/.

Reviewed by:	markj
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D37097
2022-12-09 14:15:37 +02:00
..
autofs vfs: remove cn_thread 2021-10-11 13:21:47 +00:00
cd9660 cd9660: Use ANSI (c89) prototypes 2022-07-17 08:14:49 -04:00
cuse cuse(3): Cosmetic change about testing boolean values. 2022-10-04 13:51:06 +02:00
deadfs vn_open(): If the vnode is reclaimed during open(2), do not return error. 2021-02-12 03:02:20 +02:00
devfs vfs: always retain path buffer after lookup 2022-09-17 09:10:38 +00:00
ext2fs Tree-wide replacement of VOP_UNLOCK + vrele combo with vput 2022-11-07 23:34:27 +00:00
fdescfs vfs: introduce V_PCATCH to stop abusing PCATCH 2022-09-17 15:41:37 +00:00
fifofs fifos: delegate unhandled kqueue filters to underlying filesystem 2021-10-12 02:43:07 -05:00
fuse Tree-wide replacement of VOP_UNLOCK + vrele combo with vput 2022-11-07 23:34:27 +00:00
mntfs mntfs: lock mntfs pseudo devfs vnode properly 2021-11-13 01:00:41 +02:00
msdosfs Tree-wide replacement of VOP_UNLOCK + vrele combo with vput 2022-11-07 23:34:27 +00:00
nfs nfs: Fix common typos in source code comments 2022-11-08 14:58:32 +01:00
nfsclient nfscl: Fix the NFSv4.0 mount so that it does not crash 2022-10-15 08:38:07 -07:00
nfsserver nfs: Fix common typos in source code comments 2022-11-08 14:58:32 +01:00
nullfs nullfs(5): Fix a typo in a source code comment 2022-08-07 14:04:53 +02:00
procfs vm_pager: Remove references to KVME_TYPE_DEFAULT in the kernel 2022-07-17 07:09:48 -04:00
pseudofs pseudofs: use the vget_prep/vget_finish idiom 2022-09-19 20:08:40 +00:00
smbfs filesystems: return error from vn_rlimit_fsize() instead of EFBIG 2022-09-24 19:41:14 +03:00
tmpfs tmpfs: make vm_object point to the tmpfs node instead of vnode 2022-12-09 14:15:37 +02:00
udf vfs: NDFREE(&nd, NDF_ONLY_PNBUF) -> NDFREE_PNBUF(&nd) 2022-03-24 10:20:51 +00:00
unionfs Add VV_CROSSLOCK vnode flag to avoid cross-mount lookup LOR 2022-10-26 19:33:03 -05:00