Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 May 2011 15:07:29 +0000 (UTC)
From:      Kirk McKusick <mckusick@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r222422 - head/sys/ufs/ffs
Message-ID:  <201105281507.p4SF7Thk089281@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105281507.p4SF7Thk089281>