freebsd-skq/sys/ufs
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 Put the general logic for being a CPU hog into a new function 2011-02-02 16:35:10 +00:00
ufs Embed a quota error message (C string) into uprintf() fmt. 2011-01-13 16:29:27 +00:00