cvs commit: src/sys/kern vfs_vnops.c

Jeff Roberson jeff at FreeBSD.org
Sun Mar 13 03:56:28 PST 2005


jeff        2005-03-13 11:56:28 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_vnops.c 
  Log:
   - Do a vn_start_write in vn_close, we may write if this is the last ref
     on an unlinked file.  We can't know if this is the case until after we
     have the lock.
   - Lock the vnode in vn_close, many filesystems had code which was unsafe
     without the lock held, and holding it greatly simplifies vgone().
   - Adjust vn_lock() to check for the VI_DOOMED flag where appropriate.
  
  Sponsored by:   Isilon Systems, Inc.
  
  Revision  Changes    Path
  1.225     +20 -21    src/sys/kern/vfs_vnops.c


More information about the cvs-src mailing list