exp->exp_handle.h_cookie);
return -EINVAL;
}
+ lookup_flags |= LOOKUP_COBD;
cobd_exp = cobd_get_exp(obd);
+
return md_intent_lock(cobd_exp, pid, name, len, lmm, lmmsize,
cid, it, lookup_flags, reqp, cb_blocking);
}
/* we have to compare all the fields but type, because MDS can
* return fid/mds/ino/gen if inode lives on another MDS -bzzz */
- if ((lookup_flags & LOOKUP_COBD) && !id_equal(cid, &mds_body->id1))
+ if (!(lookup_flags & LOOKUP_COBD) && !id_equal(cid, &mds_body->id1))
RETURN(-ESTALE);
}