svn commit: r245774 - stable/9/sys/ufs/ffs

Scott Long scottl at FreeBSD.org
Tue Jan 22 07:10:27 UTC 2013


Author: scottl
Date: Tue Jan 22 07:10:26 2013
New Revision: 245774
URL: http://svnweb.freebsd.org/changeset/base/245774

Log:
  MFC r242492:
  
   - In cancel_mkdir_dotdot don't panic if the inodedep is not available.  If
     the previous diradd had already finished it could have been reclaimed
     already.  This would only happen under heavy dependency pressure.

Modified:
  stable/9/sys/ufs/ffs/ffs_softdep.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/ufs/ffs/ffs_softdep.c
==============================================================================
--- stable/9/sys/ufs/ffs/ffs_softdep.c	Tue Jan 22 06:32:46 2013	(r245773)
+++ stable/9/sys/ufs/ffs/ffs_softdep.c	Tue Jan 22 07:10:26 2013	(r245774)
@@ -8584,7 +8584,7 @@ cancel_mkdir_dotdot(ip, dirrem, jremref)
 
 	if (inodedep_lookup(UFSTOVFS(ip->i_ump), ip->i_number, 0,
 	    &inodedep) == 0)
-		panic("cancel_mkdir_dotdot: Lost inodedep");
+		return (jremref);
 	dap = inodedep->id_mkdiradd;
 	if (dap == NULL || (dap->da_state & MKDIR_PARENT) == 0)
 		return (jremref);


More information about the svn-src-all mailing list