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;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to