freebsd-dev/sys/fs/tmpfs
Alan Cox 4d2f3d2cde Eliminate two dubious attempts at optimizing the implementation of a
file's last accessed, modified, and changed times:

TMPFS_NODE_ACCESSED and TMPFS_NODE_CHANGED should be set unconditionally
in tmpfs_remove() without regard to the number of hard links to the file.
Otherwise, after the last directory entry for a file has been removed, a
process that still has the file open could read stale values for the last
accessed and changed times with fstat(2).

Similarly, tmpfs_close() should update the time-related fields even if all
directory entries for a file have been removed.  In this case, the effect
is that the time-related fields will have values that are later than
expected.  They will correspond to the time at which fstat(2) is called.

In collaboration with:	kib
MFC after:	1 week
2011-02-22 14:47:10 +00:00
..
tmpfs_fifoops.c
tmpfs_fifoops.h
tmpfs_subr.c Further simplify tmpfs_reg_resize(). Also, update its comments, including 2011-02-14 15:36:38 +00:00
tmpfs_vfsops.c Add "maxfilesize" mount option for tmpfs to allow specifying the 2010-01-29 12:09:14 +00:00
tmpfs_vnops.c Eliminate two dubious attempts at optimizing the implementation of a 2011-02-22 14:47:10 +00:00
tmpfs_vnops.h
tmpfs.h Eliminate tn_reg.tn_aobj_pages. Instead, correctly maintain the vm 2011-02-13 14:46:39 +00:00