X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fmdd%2Fmdd_orphans.c;h=e58c4d6a67965b15b5cd5af38445886eb41432ef;hb=83ddd179225821e5c2aee1adb72dab26150ab385;hp=9f1a10ffb0ed0ebeeb77b67699ed889802dd5e04;hpb=688d5da6a89882fdf9ebfb3e52ca869e9e959655;p=fs%2Flustre-release.git diff --git a/lustre/mdd/mdd_orphans.c b/lustre/mdd/mdd_orphans.c index 9f1a10f..e58c4d6 100644 --- a/lustre/mdd/mdd_orphans.c +++ b/lustre/mdd/mdd_orphans.c @@ -27,7 +27,6 @@ */ /* * This file is part of Lustre, http://www.lustre.org/ - * Lustre is a trademark of Sun Microsystems, Inc. * * lustre/mdd/mdd_orphans.c * @@ -308,7 +307,7 @@ static int mdd_orphan_destroy(const struct lu_env *env, struct mdd_object *obj, 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);