mdo_ref_add(env, obj, th);
if (!S_ISDIR(mdd_object_type(obj)))
- goto out;
+ GOTO(out, rc = 0);
mdo_ref_add(env, obj, th);
mdd_orphan_ref_add(env, mdd, th);
/* try best to fixup directory, dont return errors
* from here */
if (!dt_try_as_dir(env, next))
- goto out;
+ GOTO(out, rc = 0);
next->do_index_ops->dio_delete(env, next,
(const struct dt_key *)dotdot,
th, BYPASS_CAPA);