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:
child_inode = dchild->d_inode;
DOWN_READ_I_ALLOC_SEM(child_inode);
- if (mds_inode_is_orphan(child_inode) &&
- mds_orphan_open_count(child_inode)) {
+ if (mds_orphan_open_count(child_inode)) {
UP_READ_I_ALLOC_SEM(child_inode);
CWARN("orphan %s re-opened during recovery\n", d_name);
GOTO(next, rc = 0);