cvs commit: src/sys/ufs/ffs ffs_alloc.c

Jeff Roberson jeff at
Mon Jan 24 02:08:35 PST 2005

jeff        2005-01-24 10:08:35 UTC

  FreeBSD src repository

  Modified files:
    sys/ufs/ffs          ffs_alloc.c 
   - Don't use atomic operations to deal with the active array, instead
     it is now quite naturally protected by the ufsmount mutex.
   - Use the ufs lock to protect various fields in struct fs, primarily the
     cg summary needs protection to avoid allocation races.  Several
     functions have been slightly re-arranged to reduce the number of
     lock operations.
   - Adjust several functions (blkfree, freefile, etc.) to accept a
     ufsmount as an argument so that we may access the ufs lock.
  Sponsored By:   Isilon Systems, Inc.
  Revision  Changes    Path
  1.129     +183 -96   src/sys/ufs/ffs/ffs_alloc.c

More information about the cvs-src mailing list