svn commit: r222422 - head/sys/ufs/ffs

Kirk McKusick mckusick at FreeBSD.org
Sat May 28 15:07:29 UTC 2011


Author: mckusick
Date: Sat May 28 15:07:29 2011
New Revision: 222422
URL: http://svn.freebsd.org/changeset/base/222422

Log:
  Due to a lag in updating the fs_pendinginodes count, we cannot depend
  on it to decide whether we should try to reclaim inodes when we run
  short.
  
  Discovered by: Peter Holm

Modified:
  head/sys/ufs/ffs/ffs_alloc.c

Modified: head/sys/ufs/ffs/ffs_alloc.c
==============================================================================
--- head/sys/ufs/ffs/ffs_alloc.c	Sat May 28 14:32:47 2011	(r222421)
+++ head/sys/ufs/ffs/ffs_alloc.c	Sat May 28 15:07:29 2011	(r222422)
@@ -1022,7 +1022,7 @@ dup_alloc:
 		(*vpp)->v_op = &ffs_vnodeops1;
 	return (0);
 noinodes:
-	if (fs->fs_pendinginodes > 0 && reclaimed == 0) {
+	if (reclaimed == 0) {
 		reclaimed = 1;
 		softdep_request_cleanup(fs, pvp, cred, FLUSH_INODES_WAIT);
 		goto retry;


More information about the svn-src-head mailing list