freebsd-nq/sys/ufs/ffs
Matthew D Fleming 08b163fa51 Put the general logic for being a CPU hog into a new function
should_yield().  Use this in various places.  Encapsulate the common
case of check-and-yield into a new function maybe_yield().

Change several checks for a magic number of iterations to use
should_yield() instead.

MFC after:	1 week
2011-02-02 16:35:10 +00:00
..
ffs_alloc.c Add kernel side support for BIO_DELETE/TRIM on UFS. 2010-12-29 12:25:28 +00:00
ffs_balloc.c - Merge soft-updates journaling from projects/suj/head into head. This 2010-04-24 07:05:35 +00:00
ffs_extern.h - Merge soft-updates journaling from projects/suj/head into head. This 2010-04-24 07:05:35 +00:00
ffs_inode.c Add function lbn_offset to calculate offset of the indirect block of 2010-11-11 11:35:42 +00:00
ffs_rawread.c Put the general logic for being a CPU hog into a new function 2011-02-02 16:35:10 +00:00
ffs_snapshot.c - Call softdep_prealloc() before any of the balloc routines in the 2010-05-07 08:45:21 +00:00
ffs_softdep.c Put the general logic for being a CPU hog into a new function 2011-02-02 16:35:10 +00:00
ffs_subr.c - Merge soft-updates journaling from projects/suj/head into head. This 2010-04-24 07:05:35 +00:00
ffs_tables.c
ffs_vfsops.c Add kernel side support for BIO_DELETE/TRIM on UFS. 2010-12-29 12:25:28 +00:00
ffs_vnops.c - Handle the truncation of an inode with an effective link count of 0 in 2010-07-06 07:11:04 +00:00
fs.h Add kernel side support for BIO_DELETE/TRIM on UFS. 2010-12-29 12:25:28 +00:00
softdep.h Move the definition of mkdirlisthd from header to C file. 2010-12-29 12:16:06 +00:00