mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 22:33:39 +00:00
- 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:
parent
3b32573a9f
commit
2bd20091e4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=207310
|
@ -3504,6 +3504,7 @@ cancel_jaddref(jaddref, inodedep, wkhd)
|
|||
WORKLIST_INSERT(wkhd, &jsegdep->jd_list);
|
||||
} else {
|
||||
free_jsegdep(jsegdep);
|
||||
if (jaddref->ja_state & DEPCOMPLETE)
|
||||
remove_from_journal(&jaddref->ja_list);
|
||||
}
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue