freebsd-dev/sys/fs/tmpfs
Konstantin Belousov 2d1e4220eb tmpfs_reclaim: detach unlinked node on dereferencing.
Otherwise it is dereferenced one extra time at unmount, if it survives
long enough.  One way to hold the reference on such node is to keep it
open.

tmpfs_vptocnp() now needs to account for the possibility that unlocked
node was removed from the list.

Reported by:	danfe
Tested by:	danfe, pho
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
2021-01-14 14:51:37 +02: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 Ensure that dirent's d_off field is initialized 2021-01-03 11:50:31 -05:00
tmpfs_vfsops.c tmpfs_free_tmp(): explicitly assert that tmp is locked 2021-01-10 04:48:29 +02:00
tmpfs_vnops.c tmpfs_reclaim: detach unlinked node on dereferencing. 2021-01-14 14:51:37 +02:00
tmpfs_vnops.h tmpfs: add VOP_STAT handler 2020-08-07 23:07:47 +00:00
tmpfs.h tmpfs: make M_TMPFSMNT static to tmpfs_vfsops.c 2021-01-10 04:44:55 +02:00