Searched hist:218949 (Results 1 - 1 of 1) sorted by relevance
/freebsd-9.3-release/sys/fs/tmpfs/ | ||
H A D | tmpfs_vnops.c | diff 218949 Tue Feb 22 13:01:41 MST 2011 alc 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 |
Completed in 34 milliseconds