dm_state
if (dirrem->dm_state & ONWORKLIST)
if (dirrem->dm_state & ONDEPLIST)
if ((dirrem->dm_state & DIRCHG) == 0 &&
if ((dirrem->dm_state & RMDIR) == 0) {
if (dirrem->dm_state & DIRCHG) {
dirrem->dm_state = ONDEPLIST;
dirrem->dm_state |= COMPLETE;
if (dirrem->dm_state & INPROGRESS) {
if ((dirrem->dm_state & (COMPLETE | ONWORKLIST)) ==
(dirrem->dm_state & COMPLETE) != 0)
dirrem->dm_state |= COMPLETE;
dirrem->dm_state |= ONDEPLIST;
if ((dirrem->dm_state & COMPLETE) == 0) {
dirrem->dm_state = isrmdir ? RMDIR : 0;
dirrem->dm_state |= COMPLETE;
dirrem->dm_state |= DIRCHG;
if ((dirrem->dm_state & COMPLETE) == 0) {
dirrem->dm_state |= ONDEPLIST;
if ((dirrem->dm_state & COMPLETE) == 0) {