The unified diff between revisions [6d9381f5..] and [f35cd536..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'src/fs/ufs/store_dir_ufs.c'

#
#
# patch "src/fs/ufs/store_dir_ufs.c"
#  from [dccf7803c07b1fc7e38e934e671a166bb2d8f560]
#    to [7fea6eabaa15ef88ff1cbbc3b2a8f95da3419aa6]
#
============================================================
--- src/fs/ufs/store_dir_ufs.c	dccf7803c07b1fc7e38e934e671a166bb2d8f560
+++ src/fs/ufs/store_dir_ufs.c	7fea6eabaa15ef88ff1cbbc3b2a8f95da3419aa6
@@ -1614,24 +1614,22 @@ storeUfsDirMaintain(SwapDir * SD)
  * object is able to be stored on this filesystem. UFS filesystems will
  * happily store anything as long as the LRU time isn't too small.
  */
-int
+char
 storeUfsDirCheckObj(SwapDir * SD, const StoreEntry * e)
 {
-    ufsinfo_t *ufsinfo = SD->fsdata;
-    return 500 + ufsinfo->open_files / 2;
+    return 1;
 }

 /*
  * storeUfsDirCheckLoadAv
  *
- * Return 1 whether the store isn't too busy to service the current operation,
- * 0 otherwise.
+ * Return load average from 0 to 1000.
  */
-char
+int
 storeUfsDirCheckLoadAv(SwapDir *SD, store_op_t op)
 {
-	/* ufs will always be fine doing IO. */
-	return 1;
+    ufsinfo_t *ufsinfo = SD->fsdata;
+    return 500 + ufsinfo->open_files / 2;
 }

 /*