*/
/*
* This file is part of Lustre, http://www.lustre.org/
- * Lustre is a trademark of Sun Microsystems, Inc.
*
* lustre/mdd/mdd_orphans.c
*
mdd_write_lock(env, obj, DT_TGT_CHILD);
rc = mdd_orphan_declare_delete(env, obj, th);
- if (rc == -ENOENT)
+ if (rc == -ENOENT || lu_object_is_dying(obj->mod_obj.mo_lu.lo_header))
orphan_exists = false;
else if (rc)
GOTO(unlock, rc);