- 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.

Reported by:	Andrey Zonov <zont@FreeBSD.org>
Discussed with:	mckusick
MFC after:	1 week
This commit is contained in:
Jeff Roberson 2012-11-02 21:04:06 +00:00
parent 5a3a8ec037
commit 6d95eb4c5f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242492

View File

@ -8579,7 +8579,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);