Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Feb 2011 14:47:10 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/fs/tmpfs tmpfs_vnops.c
Message-ID:  <201102221447.p1MElTax055142@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

alc         2011-02-22 14:47:10 UTC

  FreeBSD src repository

  Modified files:
    sys/fs/tmpfs         tmpfs_vnops.c 
  Log:
  SVN rev 218949 on 2011-02-22 14:47:10Z by 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
  
  Revision  Changes    Path
  1.47      +4 -12     src/sys/fs/tmpfs/tmpfs_vnops.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102221447.p1MElTax055142>