- When canceling jaddrefs they may not yet be in the journal if this is via

a revert call.  In this case don't attempt to remove something that
   has not yet been added.  Otherwise this jaddref must hang around
   to prevent the bitmap write as normal.
This commit is contained in:
Jeff Roberson 2010-04-28 07:57:37 +00:00
parent 3b32573a9f
commit 2bd20091e4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=207310

View file

@ -3504,7 +3504,8 @@ cancel_jaddref(jaddref, inodedep, wkhd)
WORKLIST_INSERT(wkhd, &jsegdep->jd_list);
} else {
free_jsegdep(jsegdep);
remove_from_journal(&jaddref->ja_list);
if (jaddref->ja_state & DEPCOMPLETE)
remove_from_journal(&jaddref->ja_list);
}
/*
* Leave NEWBLOCK jaddrefs on the inodedep so handle_workitem_remove