Jacob reported that when MDS/OST recovery requires new objects to be
created, the OST throws an assertion.
Bug 2425 remains open to track the creation of many more tests for
missing MDS/OST recovery cases.
/* delete orphans request */
if ((oa->o_valid & OBD_MD_FLFLAGS) &&
(oa->o_flags & OBD_FL_DELORPHAN)) {
- LASSERT(diff <= 0);
- if (diff == 0)
- RETURN(0);
+ if (diff >= 0)
+ RETURN(diff);
filter_destroy_precreated(exp, oa, filter);
rc = filter_update_last_objid(obd, group, 0);
if (rc)