CDEBUG(D_INODE, "destroy OSS object %d/%d\n",
(int)oa->o_id, (int)oa->o_gr);
+
+ if (async)
+ oti.oti_flags |= OBD_MODE_ASYNC;
- oti.oti_async = async;
rc = obd_destroy(mds->mds_dt_exp, oa, lsm, &oti);
obdo_free(oa);
out_free_memmd:
CWARN("orphan %s re-opened during recovery\n", d_name);
GOTO(next, rc = 0);
}
- if (!mds_inode_is_orphan(child_inode)) {
- UP_READ_I_ALLOC_SEM(child_inode);
- CWARN("orphan %s has been removed by CLOSE\n", d_name);
- GOTO(next, rc = 0);
- }
- mds_inode_unset_orphan(child_inode);
UP_READ_I_ALLOC_SEM(child_inode);
rc = mds_unlink_orphan(obd, dchild, child_inode, pending_dir);
if (rc == 0) {